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:
parent
b37a922267
commit
a96f9caa1d
2 changed files with 8 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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.*/
|
||||
|
|
Loading…
Reference in a new issue