From: Vladimir Serbinenko Date: Tue, 21 Jul 2015 23:57:40 +0000 (+0200) Subject: dmraid_nvidia: Set a name to usable value to avoid null dereference. X-Git-Tag: 2.02-beta3~251 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f27f9f69163bf6b41d8b4dc959f1baefa6f674e;p=thirdparty%2Fgrub.git dmraid_nvidia: Set a name to usable value to avoid null dereference. Reported by: Andrei Borzenkov --- diff --git a/grub-core/disk/dmraid_nvidia.c b/grub-core/disk/dmraid_nvidia.c index 881508cf2..060279124 100644 --- a/grub-core/disk/dmraid_nvidia.c +++ b/grub-core/disk/dmraid_nvidia.c @@ -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);