diff options
Diffstat (limited to 'arch/mips/kernel/traps.c')
-rw-r--r-- | arch/mips/kernel/traps.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 6f3ff9690686..7058893d5ad2 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c | |||
@@ -534,13 +534,14 @@ static inline int simulate_rdhwr(struct pt_regs *regs) | |||
534 | switch (rd) { | 534 | switch (rd) { |
535 | case 29: | 535 | case 29: |
536 | regs->regs[rt] = ti->tp_value; | 536 | regs->regs[rt] = ti->tp_value; |
537 | break; | 537 | return 0; |
538 | default: | 538 | default: |
539 | return -EFAULT; | 539 | return -EFAULT; |
540 | } | 540 | } |
541 | } | 541 | } |
542 | 542 | ||
543 | return 0; | 543 | /* Not ours. */ |
544 | return -EFAULT; | ||
544 | } | 545 | } |
545 | 546 | ||
546 | asmlinkage void do_ov(struct pt_regs *regs) | 547 | asmlinkage void do_ov(struct pt_regs *regs) |