diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2010-05-17 04:00:13 -0400 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2010-05-17 04:00:16 -0400 |
commit | 6ea50968274673ea7b58695efec2eeb55ca2f5dd (patch) | |
tree | 3b9127cc6fea6c940633c5c82af1fed72633c046 /arch/s390 | |
parent | 10d3858950557cd3cc05f647ede597114c610177 (diff) |
[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>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/kernel/traps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/traps.c b/arch/s390/kernel/traps.c index 6e7ad63854c0..e605f070610c 100644 --- a/arch/s390/kernel/traps.c +++ b/arch/s390/kernel/traps.c | |||
@@ -390,8 +390,8 @@ static void default_trap_handler(struct pt_regs * regs, long interruption_code) | |||
390 | { | 390 | { |
391 | if (regs->psw.mask & PSW_MASK_PSTATE) { | 391 | if (regs->psw.mask & PSW_MASK_PSTATE) { |
392 | local_irq_enable(); | 392 | local_irq_enable(); |
393 | do_exit(SIGSEGV); | ||
394 | report_user_fault(interruption_code, regs); | 393 | report_user_fault(interruption_code, regs); |
394 | do_exit(SIGSEGV); | ||
395 | } else | 395 | } else |
396 | die("Unknown program exception", regs, interruption_code); | 396 | die("Unknown program exception", regs, interruption_code); |
397 | } | 397 | } |