From: Oleg Nesterov Date: Tue, 26 Jul 2011 23:08:34 +0000 (-0700) Subject: do_coredump: fix the "ispipe" error check X-Git-Tag: v3.1-rc1~197 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99b64567486716d18b2156cad188d86478816e4f;p=pandora-kernel.git 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 Signed-off-by: Jiri Slaby Reviewed-by: Neil Horman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed