[MIPS] Generate SIGILL again The rdhwr emulation accidentally swallowed the SIGILL from most other illegal instructions. Make sure to return -EFAULT by default. Signed-off-by: Daniel Jacobowitz <dan@codesourcery.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by Daniel Jacobowitz and committed by Ralf Baechle 56ebd51b b6c3539b

+3 -2
+3 -2
arch/mips/kernel/traps.c
··· 534 switch (rd) { 535 case 29: 536 regs->regs[rt] = ti->tp_value; 537 - break; 538 default: 539 return -EFAULT; 540 } 541 } 542 543 - return 0; 544 } 545 546 asmlinkage void do_ov(struct pt_regs *regs)
··· 534 switch (rd) { 535 case 29: 536 regs->regs[rt] = ti->tp_value; 537 + return 0; 538 default: 539 return -EFAULT; 540 } 541 } 542 543 + /* Not ours. */ 544 + return -EFAULT; 545 } 546 547 asmlinkage void do_ov(struct pt_regs *regs)