]> git.baikalelectronics.ru Git - kernel.git/commit
exit: Move oops specific logic from do_exit into make_task_dead
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 22 Nov 2021 15:33:00 +0000 (09:33 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Mon, 13 Dec 2021 18:04:45 +0000 (12:04 -0600)
commita66ec8fb806ffe73a78a0afa7556f9a87ddd0e9e
tree8639eff37019d3dcf8999b5a47a905909109ef62
parent238bcd2dab757a27f9590b792c4f766b7519fe28
exit: Move oops specific logic from do_exit into make_task_dead

The beginning of do_exit has become cluttered and difficult to read as
it is filled with checks to handle things that can only happen when
the kernel is operating improperly.

Now that we have a dedicated function for cleaning up a task when the
kernel is operating improperly move the checks there.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
kernel/exit.c
kernel/futex/core.c
kernel/kexec_core.c