diff options
author | Oleg Nesterov <oleg@redhat.com> | 2011-07-27 01:08:34 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-27 01:49:43 +0200 |
commit | 99b64567486716d18b2156cad188d86478816e4f (patch) | |
tree | 40ab51505909d417c01877c3dff97b7cabcf473d /COPYING | |
parent | coredump: escape / in hostname and comm (diff) | |
download | linux-99b64567486716d18b2156cad188d86478816e4f.tar.xz linux-99b64567486716d18b2156cad188d86478816e4f.zip |
do_coredump: fix the "ispipe" error check
do_coredump() assumes that if format_corename() fails it should return
-ENOMEM. This is not true, for example cn_print_exe_file() can propagate
the error from d_path. Even if it was true, this is too fragile. Change
the code to check "ispipe < 0".
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Reviewed-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions