linux-mips
[Top] [All Lists]

[PATCH] Notifier chain called twice

To: linux-mips@linux-mips.org
Subject: [PATCH] Notifier chain called twice
From: Yury Polyanskiy <ypolyans@princeton.edu>
Date: Tue, 12 Apr 2011 02:44:58 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:content-type; bh=F5MaIqWVrDA/lUXai7iti8FnaKSDWXvpc71W70VETdw=; b=lA9S1Xpe5NH5MSu9sFKhe2aafMZSN6Uv4SmTEYzL1PRrsVRp1DNq5bRxrnACFau/yo NTisKrA5XngJgXiA7a/9Bh5xUdl3GqzOeg535hUXigNGZbJxwDyvMeyfsIqvLRs4B5KT 8kDim+3l/DLGWB/A8+IOfX9zEiZaPBWjiPWZw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=qAfVSt0LgaValEC1ZfguuoLJSJtPQ/cAsFfvVLvI5zHpnvxZ9VWJTX1xWS0JOWYqf6 vnXbyorAD6PrxAlV0h2ryBTtds9wlrVMAvAbFATFYih1hwc3O5ly3o+Ox1Tk5nyNdrad 9q/OUleEYwwgwKLutbtQqQlEwxofy8e5+WENA=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Dear all,

The notifier chain is currently called twice on OOPS. Patch below.

Best,
Yury




diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 4e00f9b..fdc6773 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -375,8 +375,6 @@ void __noreturn die(const char *str, str
        unsigned long dvpret = dvpe();
 #endif /* CONFIG_MIPS_MT_SMTC */
 
-       notify_die(DIE_OOPS, str, regs, 0, regs_to_trapnr(regs), SIGSEGV);
-
        console_verbose();
        spin_lock_irq(&die_lock);
        bust_spinlocks(1);

<Prev in Thread] Current Thread [Next in Thread>