diff options
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -2133,16 +2133,16 @@ void do_coredump(long signr, int exit_code, struct pt_regs *regs) | |||
2133 | 2133 | ||
2134 | ispipe = format_corename(&cn, signr); | 2134 | ispipe = format_corename(&cn, signr); |
2135 | 2135 | ||
2136 | if (ispipe == -ENOMEM) { | ||
2137 | printk(KERN_WARNING "format_corename failed\n"); | ||
2138 | printk(KERN_WARNING "Aborting core\n"); | ||
2139 | goto fail_corename; | ||
2140 | } | ||
2141 | |||
2142 | if (ispipe) { | 2136 | if (ispipe) { |
2143 | int dump_count; | 2137 | int dump_count; |
2144 | char **helper_argv; | 2138 | char **helper_argv; |
2145 | 2139 | ||
2140 | if (ispipe < 0) { | ||
2141 | printk(KERN_WARNING "format_corename failed\n"); | ||
2142 | printk(KERN_WARNING "Aborting core\n"); | ||
2143 | goto fail_corename; | ||
2144 | } | ||
2145 | |||
2146 | if (cprm.limit == 1) { | 2146 | if (cprm.limit == 1) { |
2147 | /* | 2147 | /* |
2148 | * Normally core limits are irrelevant to pipes, since | 2148 | * Normally core limits are irrelevant to pipes, since |