projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13c8758
)
dm ioctl: prevent empty message
author
Alasdair G Kergon
<agk@redhat.com>
Tue, 2 Aug 2011 11:32:03 +0000
(12:32 +0100)
committer
Alasdair G Kergon
<agk@redhat.com>
Tue, 2 Aug 2011 11:32:03 +0000
(12:32 +0100)
Detect invalid empty messages in core dm instead of requiring every target to
check this.
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-ioctl.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-ioctl.c
b/drivers/md/dm-ioctl.c
index
4cacdad
..
1622a6b
100644
(file)
--- 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)
goto out;
}
+ if (!argc) {
+ DMWARN("Empty message received.");
+ goto out;
+ }
+
table = dm_get_live_table(md);
if (!table)
goto out_argv;