|
|
@@ -2133,16 +2133,16 @@ void do_coredump(long signr, int exit_code, struct pt_regs *regs)
|
|
|
|
|
|
ispipe = format_corename(&cn, signr);
|
|
|
|
|
|
- if (ispipe == -ENOMEM) {
|
|
|
- printk(KERN_WARNING "format_corename failed\n");
|
|
|
- printk(KERN_WARNING "Aborting core\n");
|
|
|
- goto fail_corename;
|
|
|
- }
|
|
|
-
|
|
|
if (ispipe) {
|
|
|
int dump_count;
|
|
|
char **helper_argv;
|
|
|
|
|
|
+ if (ispipe < 0) {
|
|
|
+ printk(KERN_WARNING "format_corename failed\n");
|
|
|
+ printk(KERN_WARNING "Aborting core\n");
|
|
|
+ goto fail_corename;
|
|
|
+ }
|
|
|
+
|
|
|
if (cprm.limit == 1) {
|
|
|
/*
|
|
|
* Normally core limits are irrelevant to pipes, since
|