aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-ioctl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
index 4cacdad2270a..1622a6bc0bfd 100644
--- a/drivers/md/dm-ioctl.c
+++ b/drivers/md/dm-ioctl.c
@@ -1402,6 +1402,11 @@ static int target_message(struct dm_ioctl *param, size_t param_size)
1402 goto out; 1402 goto out;
1403 } 1403 }
1404 1404
1405 if (!argc) {
1406 DMWARN("Empty message received.");
1407 goto out;
1408 }
1409
1405 table = dm_get_live_table(md); 1410 table = dm_get_live_table(md);
1406 if (!table) 1411 if (!table)
1407 goto out_argv; 1412 goto out_argv;