Blame SOURCES/0040-grub-core-loader-i386-linux.c-grub_cmd_linux-Fix-inc.patch

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