* grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number

even if some elements have a name.
	Reported by: Alexander GQ Gerasiov.
This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2011-01-22 13:18:05 +01:00
1 parent 96e0a6ea97
commit e489601ad0
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -570,7 +570,7 @@ insert_array (grub_disk_t disk, struct grub_raid_array *new_array,
{
for (p = array_list; p != NULL; p = p->next)
{
if (! p->name && p->number == array->number)
if (p->number == array->number)
break;
}
}