|
@@ -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)
|