* grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
NULL when the argument `level' has an unexpected value.
This commit is contained in:
parent
92cd0f6e45
commit
eb6e664936
2 changed files with 8 additions and 0 deletions
|
@ -837,6 +837,9 @@ grub_diskfilter_make_raid (grub_size_t uuidlen, char *uuid, int nmemb,
|
|||
case 6:
|
||||
totsize = (nmemb - level / 3) * disk_size;
|
||||
break;
|
||||
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
array = grub_diskfilter_get_vg_by_uuid (uuidlen, uuid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue