diff options
author | Oleg Nesterov <[email protected]> | 2011-07-26 16:08:34 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-07-26 16:49:43 -0700 |
commit | 99b64567486716d18b2156cad188d86478816e4f (patch) | |
tree | 40ab51505909d417c01877c3dff97b7cabcf473d /tools/perf/scripts/python/check-perf-trace.py | |
parent | 2c563731fee0f625924f72e854957bc77601e8b3 (diff) |
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 <[email protected]>
Signed-off-by: Jiri Slaby <[email protected]>
Reviewed-by: Neil Horman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions