projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce503f5
)
[PATCH] dm table split_args: handle no input
author
David Teigland
<teigland@redhat.com>
Mon, 26 Jun 2006 07:27:31 +0000
(
00:27
-0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:36 +0000
(09:58 -0700)
Return sense if dm_split_args is called with a NULL input parameter.
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm-table.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-table.c
b/drivers/md/dm-table.c
index
b6183ed
..
10c9439
100644
(file)
--- a/
drivers/md/dm-table.c
+++ b/
drivers/md/dm-table.c
@@
-590,6
+590,12
@@
int dm_split_args(int *argc, char ***argvp, char *input)
unsigned array_size = 0;
*argc = 0;
+
+ if (!input) {
+ *argvp = NULL;
+ return 0;
+ }
+
argv = realloc_argv(&array_size, argv);
if (!argv)
return -ENOMEM;