a5bd9f6
From 1f5027bb0ec48851cc2f9c54552a6ec1f1145930 Mon Sep 17 00:00:00 2001
a5bd9f6
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
a5bd9f6
Date: Tue, 18 Sep 2012 11:44:29 +0200
a5bd9f6
Subject: [PATCH 040/364] 	* grub-core/loader/i386/linux.c
a5bd9f6
 (grub_cmd_linux): Fix incorrect 	le-conversion. 	Reported by: BURETTE,
a5bd9f6
 Bernard.
a5bd9f6
a5bd9f6
---
a5bd9f6
 ChangeLog                     | 6 ++++++
a5bd9f6
 grub-core/loader/i386/linux.c | 2 +-
a5bd9f6
 2 files changed, 7 insertions(+), 1 deletion(-)
a5bd9f6
a5bd9f6
diff --git a/ChangeLog b/ChangeLog
a5bd9f6
index de80a94..b524cf6 100644
a5bd9f6
--- a/ChangeLog
a5bd9f6
+++ b/ChangeLog
a5bd9f6
@@ -1,3 +1,9 @@
a5bd9f6
+2012-09-18  Vladimir Serbinenko  <phcoder@gmail.com>
a5bd9f6
+
a5bd9f6
+	* grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
a5bd9f6
+	le-conversion.
a5bd9f6
+	Reported by: BURETTE, Bernard.
a5bd9f6
+
a5bd9f6
 2012-09-17  Colin Watson  <cjwatson@debian.org>
a5bd9f6
 
a5bd9f6
 	* util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
a5bd9f6
diff --git a/grub-core/loader/i386/linux.c b/grub-core/loader/i386/linux.c
a5bd9f6
index d34b2f8..bcb037c 100644
a5bd9f6
--- a/grub-core/loader/i386/linux.c
a5bd9f6
+++ b/grub-core/loader/i386/linux.c
a5bd9f6
@@ -839,7 +839,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
a5bd9f6
 
a5bd9f6
 #ifdef GRUB_MACHINE_EFI
a5bd9f6
 #ifdef __x86_64__
a5bd9f6
-  if (grub_le_to_cpu16 (params->version < 0x0208) &&
a5bd9f6
+  if (grub_le_to_cpu16 (params->version) < 0x0208 &&
a5bd9f6
       ((grub_addr_t) grub_efi_system_table >> 32) != 0)
a5bd9f6
     return grub_error(GRUB_ERR_BAD_OS,
a5bd9f6
 		      "kernel does not support 64-bit addressing");
a5bd9f6
-- 
a5bd9f6
1.8.1.4
a5bd9f6