mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
coredump: factor out the setting of PF_DUMPCORE
Cleanup. Every linux_binfmt->core_dump() sets PF_DUMPCORE, move this into zap_threads() called by do_coredump(). Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Mandeep Singh Baines <msb@chromium.org> Cc: Neil Horman <nhorman@redhat.com> Cc: "Rafael J. Wysocki" <rjw@sisk.pl> Cc: Tejun Heo <tj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
528f827ee0
commit
079148b919
5 changed files with 2 additions and 6 deletions
|
@ -2092,8 +2092,7 @@ static int elf_core_dump(struct coredump_params *cprm)
|
|||
goto cleanup;
|
||||
|
||||
has_dumped = 1;
|
||||
current->flags |= PF_DUMPCORE;
|
||||
|
||||
|
||||
fs = get_fs();
|
||||
set_fs(KERNEL_DS);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue