* grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return

NULL when the argument `level' has an unexpected value.
This commit is contained in:
Grégoire Sutre 2012-02-05 01:22:04 +01:00
parent 92cd0f6e45
commit eb6e664936
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
* grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
NULL when the argument `level' has an unexpected value.
2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
Move platform-dependent files from $prefix to $prefix/$platform.

View file

@ -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);