Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dm ioctl: use uninitialized_var

drivers/md/dm-ioctl.c:1405: warning: 'param' may be used uninitialized in this function

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>

authored by

Andrew Morton and committed by
Alasdair G Kergon
a26ffd4a 69a2ce72

+1 -1
+1 -1
drivers/md/dm-ioctl.c
··· 1402 1402 { 1403 1403 int r = 0; 1404 1404 unsigned int cmd; 1405 - struct dm_ioctl *param; 1405 + struct dm_ioctl *uninitialized_var(param); 1406 1406 ioctl_fn fn = NULL; 1407 1407 size_t param_size; 1408 1408