The patch titled argv_split: allow argv_split to handle NULL pointer in argcp parameter gracefully has been added to the -mm tree. Its filename is argv_split-allow-argv_split-to-handle-null-pointer-in-argcp-parameter-gracefully.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: argv_split: allow argv_split to handle NULL pointer in argcp parameter gracefully From: Neil Horman <nhorman@xxxxxxxxxxxxx> It would be nice if the argv_split library function could gracefully handle a NULL pointer in the argcp parameter, so as to allow functions using it that did not care about the value of argc to not have to declare a useless variable. This patch accomplishes that. Tested by me, with successful results. Signed-off-by: Neil Horman <nhorman@xxxxxxxxxxxxx> Acked-by: Jeremy Fitzhardinge <jeremy@xxxxxxxx> Cc: Satyam Sharma <satyam@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/argv_split.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletion(-) diff -puN lib/argv_split.c~argv_split-allow-argv_split-to-handle-null-pointer-in-argcp-parameter-gracefully lib/argv_split.c --- a/lib/argv_split.c~argv_split-allow-argv_split-to-handle-null-pointer-in-argcp-parameter-gracefully +++ a/lib/argv_split.c @@ -75,7 +75,9 @@ char **argv_split(gfp_t gfp, const char if (argv == NULL) goto out; - *argcp = argc; + if (argcp) + *argcp = argc; + argvp = argv; while (*str) { _ Patches currently in -mm which might be from nhorman@xxxxxxxxxxxxx are argv_split-allow-argv_split-to-handle-null-pointer-in-argcp-parameter-gracefully.patch core_pattern-ignore-rlimit_core-if-core_pattern-is-a-pipe.patch core_pattern-ignore-rlimit_core-if-core_pattern-is-a-pipe-fix.patch core_pattern-allow-passing-of-arguments-to-user-mode-helper-when-core_pattern-is-a-pipe.patch core_pattern-fix-up-a-few-miscellaneous-bugs.patch core_pattern-fix-up-a-few-miscellaneous-bugs-fix.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html