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)
commit05ea0424f0e21c0ef9b47c89826e7c22ae137975
tree8639eff37019d3dcf8999b5a47a905909109ef62
parent0e25498f8cd43c1b5aa327f373dd094e9a006da7
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