From: Atsushi Nemoto Date: Tue, 6 Feb 2007 07:02:21 +0000 (+0900) Subject: [MIPS] Fix double signal on trap and break instruction X-Git-Tag: v2.6.21-rc1~54^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=90fccb1363f96790034c69f0703a36241f9197dc;p=linux-2.6-omap-h63xx.git [MIPS] Fix double signal on trap and break instruction This commit broke gdb, since any BREAK or TRAP instruction cause SIGSEGV. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index f663c63d5dd..2aa208b99da 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -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);