]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
signal/sparc32: Remove unreachable do_exit in do_sparc_fault
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 20 Oct 2021 17:43:50 +0000 (12:43 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 20 Oct 2021 18:09:56 +0000 (13:09 -0500)
The call to do_exit in do_sparc_fault immediately follows a call to
unhandled_fault.  The function unhandled_fault never returns.  This
means the call to do_exit can never be reached.

Cc: David Miller <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
Fixes: 2.3.41
Link: https://lkml.kernel.org/r/20211020174406.17889-4-ebiederm@xmission.com
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
arch/sparc/mm/fault_32.c

index fa858626b85b6d40d523e6e624dbdeac6150f9bc..90dc4ae315c897289bf4cc3a7a02a5be60f7bd76 100644 (file)
@@ -248,7 +248,6 @@ no_context:
        }
 
        unhandled_fault(address, tsk, regs);
-       do_exit(SIGKILL);
 
 /*
  * We ran out of memory, or some other thing happened to us that made