From: Mathieu Desnoyers Date: Thu, 10 May 2007 10:15:15 +0000 (-0700) Subject: x86_64: fix default_do_nmi() missing return after an if () X-Git-Tag: v2.6.22-rc1~129 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02b67325a6d34f2ae67484a8802b6ffc9ce9931d;p=linux-2.6 x86_64: fix default_do_nmi() missing return after an if () Signed-off-by: Mathieu Desnoyers Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c index 8c2ac41187..d28f01379b 100644 --- a/arch/x86_64/kernel/traps.c +++ b/arch/x86_64/kernel/traps.c @@ -778,6 +778,7 @@ asmlinkage __kprobes void default_do_nmi(struct pt_regs *regs) return; if (notify_die(DIE_NMI_POST, "nmi_post", regs, reason, 2, 0) == NOTIFY_STOP) + return; if (!do_nmi_callback(regs,cpu)) unknown_nmi_error(reason, regs);