[MIPS] Fix double signal on trap and break instruction
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Tue, 6 Feb 2007 07:02:21 +0000 (16:02 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 20 Feb 2007 17:11:55 +0000 (17:11 +0000)
This commit broke gdb, since any BREAK or TRAP instruction cause SIGSEGV.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/traps.c

index f663c63..2aa208b 100644 (file)
@@ -704,6 +704,7 @@ asmlinkage void do_bp(struct pt_regs *regs)
                die_if_kernel("Break instruction in kernel code", regs);
                force_sig(SIGTRAP, current);
        }
+       return;
 
 out_sigsegv:
        force_sig(SIGSEGV, current);
@@ -747,6 +748,7 @@ asmlinkage void do_tr(struct pt_regs *regs)
                die_if_kernel("Trap instruction in kernel code", regs);
                force_sig(SIGTRAP, current);
        }
+       return;
 
 out_sigsegv:
        force_sig(SIGSEGV, current);