]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
MIPS: Return after handling coprocessor 2 exception
authorJesper Nilsson <jesper@jni.nu>
Thu, 17 Jun 2010 13:25:54 +0000 (15:25 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 5 Jul 2010 16:17:33 +0000 (17:17 +0100)
Breaking here dropped us to the default code which always sends a SIGILL
to the current process, no matter what the CU2 notifier says.

[Ralf: Currently this only hurts on Cavium and possibly some out of tree
platforms.]

Signed-off-by: Jesper Nilsson <jesper@jni.nu>
To: linux-mips@linux-mips.org
To: linux-kernel@vger.kernel.org
Patchwork: http://patchwork.linux-mips.org/patch/1391/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/traps.c

index 8bdd6a663c7fe2284b69bfd4627acdd77364ca63..852780868fb4914e4711107e96c388e1ad8ab38d 100644 (file)
@@ -976,7 +976,7 @@ asmlinkage void do_cpu(struct pt_regs *regs)
 
        case 2:
                raw_notifier_call_chain(&cu2_chain, CU2_EXCEPTION, regs);
-               break;
+               return;
 
        case 3:
                break;