From 84b01d2791b2b6d4d3cc83da51d0d006c3a25956 Mon Sep 17 00:00:00 2001 From: Channagoud Kadabi Date: Mon, 5 Jun 2017 16:42:55 -0700 Subject: [PATCH] init: Initialize uuid pointer dm_ioctl_export function checks if uuid is NULL if not uses it to extract uuid cell information and could result to accessing uninitialized pointer. Change-Id: I88304b157efe03a1ed6eee0eaf04bfe0953646e5 Signed-off-by: Channagoud Kadabi --- init/do_mounts_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/do_mounts_dm.c b/init/do_mounts_dm.c index af84b01ccfbc..7760705faffe 100644 --- a/init/do_mounts_dm.c +++ b/init/do_mounts_dm.c @@ -349,7 +349,7 @@ static void __init dm_setup_drives(void) struct dm_table *table = NULL; struct dm_setup_target *target; struct dm_device *dev; - char *uuid; + char *uuid = NULL; fmode_t fmode = FMODE_READ; struct dm_device *devices;