* disk/raid.c (insert_array): Don't count named arrays when looking

for unused array numbers.
Reported and tested by: maru.
This commit is contained in:
Colin Watson 2010-07-22 09:38:06 +01:00
parent c03507dfb8
commit a9600892c1
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2010-07-22 Colin Watson <cjwatson@ubuntu.com>
* disk/raid.c (insert_array): Don't count named arrays when looking
for unused array numbers.
Reported and tested by: maru.
2010-07-20 Colin Watson <cjwatson@ubuntu.com>
* bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy

View file

@ -533,7 +533,7 @@ insert_array (grub_disk_t disk, struct grub_raid_array *new_array,
/* Check whether we don't have multiple arrays with the same number. */
for (p = array_list; p != NULL; p = p->next)
{
if (p->number == array->number)
if (! p->name && p->number == array->number)
break;
}
@ -546,7 +546,7 @@ insert_array (grub_disk_t disk, struct grub_raid_array *new_array,
{
for (p = array_list; p != NULL; p = p->next)
{
if (p->number == i)
if (! p->name && p->number == i)
break;
}