]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[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 f663c63d5dd31c4bd8049741d3c05735c912c801..2aa208b99da832682184085329ef86c2c2e8a783 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);