dmraid_nvidia: Set a name to usable value to avoid null dereference.

Reported by: Andrei Borzenkov
This commit is contained in:
Vladimir Serbinenko 2015-07-22 01:57:40 +02:00
parent 5c46165a7c
commit 9f27f9f691

View file

@ -172,7 +172,7 @@ grub_dmraid_nv_detect (grub_disk_t disk,
return grub_diskfilter_make_raid (sizeof (sb.array.signature),
uuid, sb.array.total_volumes,
NULL, disk_size,
"nv", disk_size,
sb.array.stripe_block_size,
GRUB_RAID_LAYOUT_LEFT_ASYMMETRIC,
level);