diff options
Diffstat (limited to 'arch/x86/kernel/traps_64.c')
-rw-r--r-- | arch/x86/kernel/traps_64.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/x86/kernel/traps_64.c b/arch/x86/kernel/traps_64.c index 055b1650c69d..4e073320e70a 100644 --- a/arch/x86/kernel/traps_64.c +++ b/arch/x86/kernel/traps_64.c | |||
@@ -600,8 +600,13 @@ void die(const char * str, struct pt_regs * regs, long err) | |||
600 | 600 | ||
601 | void __kprobes die_nmi(char *str, struct pt_regs *regs, int do_panic) | 601 | void __kprobes die_nmi(char *str, struct pt_regs *regs, int do_panic) |
602 | { | 602 | { |
603 | unsigned long flags = oops_begin(); | 603 | unsigned long flags; |
604 | |||
605 | if (notify_die(DIE_NMIWATCHDOG, str, regs, 0, 2, SIGINT) == | ||
606 | NOTIFY_STOP) | ||
607 | return; | ||
604 | 608 | ||
609 | flags = oops_begin(); | ||
605 | /* | 610 | /* |
606 | * We are in trouble anyway, lets at least try | 611 | * We are in trouble anyway, lets at least try |
607 | * to get a message out. | 612 | * to get a message out. |