From: Al Viro Date: Sat, 4 May 2013 18:45:54 +0000 (-0400) Subject: do_coredump(): don't wait for thaw if coredump has already been interrupted X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e86d35c38e37eb64cb5d11933c42a2a72f16ce23;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git do_coredump(): don't wait for thaw if coredump has already been interrupted Signed-off-by: Al Viro --- diff --git a/fs/coredump.c b/fs/coredump.c index a9abe313e8d5..dafafbafa731 100644 --- a/fs/coredump.c +++ b/fs/coredump.c @@ -654,10 +654,11 @@ void do_coredump(siginfo_t *siginfo) goto close_fail; if (displaced) put_files_struct(displaced); - file_start_write(cprm.file); - core_dumped = !dump_interrupted() && binfmt->core_dump(&cprm); - file_end_write(cprm.file); - + if (!dump_interrupted()) { + file_start_write(cprm.file); + core_dumped = binfmt->core_dump(&cprm); + file_end_write(cprm.file); + } if (ispipe && core_pipe_limit) wait_for_dump_helpers(cprm.file); close_fail: