]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2008-02-08 Robert Millan <rmh@aybabtu.com>
authorrobertmh <robertmh@localhost>
Fri, 8 Feb 2008 22:39:29 +0000 (22:39 +0000)
committerrobertmh <robertmh@localhost>
Fri, 8 Feb 2008 22:39:29 +0000 (22:39 +0000)
        * disk/raid.c (grub_raid_scan_device): Check for
        `array->device[sb.this_disk.number]' rather than for
        `array->device[sb.this_disk.number]->name', since the latter is not
        garanteed to be accessible.

ChangeLog
disk/raid.c

index 55e0d905c8575520a474598cf671cea872570585..2e66e76ab4948ab72bcf04865bac2e27944f5f23 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-02-08  Robert Millan  <rmh@aybabtu.com>
+
+       * disk/raid.c (grub_raid_scan_device): Check for
+       `array->device[sb.this_disk.number]' rather than for
+       `array->device[sb.this_disk.number]->name', since the latter is not
+       garanteed to be accessible.
+
 2008-02-08  Robert Millan  <rmh@aybabtu.com>
 
        * disk/raid.c: Update copyright.
index d5da397092fc55a037bb3626c3d6c406834a1e8b..8b92b3477077fc41f45889819a493349af84c3d5 100644 (file)
@@ -419,7 +419,7 @@ grub_raid_scan_device (const char *name)
          return 0;
        }
   
-      if (array->device[sb.this_disk.number]->name != 0)
+      if (array->device[sb.this_disk.number] != NULL)
        {
          /* We found multiple devices with the same number. Again,
             this shouldn't happen.*/