* 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:
parent
96e0a6ea97
commit
e489601ad0
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
|
||||
even if some elements have a name.
|
||||
Reported by: Alexander GQ Gerasiov.
|
||||
|
||||
2011-01-22 Colin Watson <cjwatson@ubuntu.com>
|
||||
|
||||
* util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue