Skip to content

Commit

Permalink
[S390] user space fault: report fault before calling do_exit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed May 17, 2010
1 parent 10d3858 commit 6ea5096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ static void default_trap_handler(struct pt_regs * regs, long interruption_code)
{
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);
}
Expand Down

0 comments on commit 6ea5096

Please sign in to comment.