[S390] user space fault: report fault before calling do_exit
Report user space faults before calling do_exit, since do_exit does
not return and therefore we will never see the fault message on the
console.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
diff --git a/arch/s390/kernel/traps.c b/arch/s390/kernel/traps.c
index 6e7ad63..e605f07 100644
--- a/arch/s390/kernel/traps.c
+++ b/arch/s390/kernel/traps.c
@@ -390,8 +390,8 @@
{
if (regs->psw.mask & PSW_MASK_PSTATE) {
local_irq_enable();
- do_exit(SIGSEGV);
report_user_fault(interruption_code, regs);
+ do_exit(SIGSEGV);
} else
die("Unknown program exception", regs, interruption_code);
}