From 74c5b50441600be67f49d5b5a1d8bd7546761448 Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Tue, 6 Jan 2009 14:41:11 -0800 Subject: [PATCH] --- yaml --- r: 126293 b: refs/heads/master c: 350eaf791bebccb9ad5999351f3e328319545f03 h: refs/heads/master i: 126291: d9698e250bb7cd5720c1a4434359aa1c6d28c532 v: v3 --- [refs] | 2 +- trunk/fs/exec.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index eee5b34f7e69..9b94754cea0e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 26e5438e4b77f04a51870f9415ffed68004fac1d +refs/heads/master: 350eaf791bebccb9ad5999351f3e328319545f03 diff --git a/trunk/fs/exec.c b/trunk/fs/exec.c index 6ca4e3d22a3d..6b09d6fa4f7e 100644 --- a/trunk/fs/exec.c +++ b/trunk/fs/exec.c @@ -1770,6 +1770,11 @@ int do_coredump(long signr, int exit_code, struct pt_regs * regs) if (ispipe) { helper_argv = argv_split(GFP_KERNEL, corename+1, &helper_argc); + if (!helper_argv) { + printk(KERN_WARNING "%s failed to allocate memory\n", + __func__); + goto fail_unlock; + } /* Terminate the string before the first option */ delimit = strchr(corename, ' '); if (delimit)