Skip to content

Commit

Permalink
init: Initialize uuid pointer
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Channagoud Kadabi committed Jun 6, 2017
1 parent 8d1c5c0 commit 84b01d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init/do_mounts_dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 84b01d2

Please sign in to comment.