From c7f34744c677e3106cded39c7cca2d2fd78f1742 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Thu, 7 Nov 2013 00:46:44 +0100 Subject: [PATCH] * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix BIOS disk check. --- ChangeLog | 5 +++++ grub-core/commands/legacycfg.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 787c7a144..e9252bb10 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-11-07 Vladimir Serbinenko + + * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix + BIOS disk check. + 2013-11-07 Vladimir Serbinenko * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum diff --git a/grub-core/commands/legacycfg.c b/grub-core/commands/legacycfg.c index a3ad5c6f9..ac6a2136d 100644 --- a/grub-core/commands/legacycfg.c +++ b/grub-core/commands/legacycfg.c @@ -358,7 +358,7 @@ grub_cmd_legacy_kernel (struct grub_command *mycmd __attribute__ ((unused)), dev = grub_device_open (0); if (dev && dev->disk && dev->disk->dev->id == GRUB_DISK_DEVICE_BIOSDISK_ID - && dev->disk->dev->id >= 0x80 && dev->disk->dev->id <= 0x90) + && dev->disk->id >= 0x80 && dev->disk->id <= 0x90) { struct grub_partition *part = dev->disk->partition; bsd_device = dev->disk->id - 0x80 - hdbias;