]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
authorVladimir Serbinenko <phcoder@gmail.com>
Wed, 6 Nov 2013 23:46:44 +0000 (00:46 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Wed, 6 Nov 2013 23:46:44 +0000 (00:46 +0100)
BIOS disk check.

ChangeLog
grub-core/commands/legacycfg.c

index 787c7a144e0e2305385b4ca02e25d16d1fe31746..e9252bb103e5d344dfcf43d3c2a21e2d5b41e189 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
+       BIOS disk check.
+
 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
index a3ad5c6f92351658c80e4f167dc2d7c4db7ef990..ac6a2136da27ad4381cb9f195852980498dbb281 100644 (file)
@@ -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;