mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
* 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:
1 parent
96e0a6ea97
commit
e489601ad0
2 files changed
+7
-1
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user