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.
This commit is contained in:
robertmh 2008-02-08 22:39:29 +00:00
parent b37a922267
commit a96f9caa1d
2 changed files with 8 additions and 1 deletions

View File

@ -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.

View 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.*/