diff options
Diffstat (limited to 'arch/mips/kernel/unaligned.c')
-rw-r--r-- | arch/mips/kernel/unaligned.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/unaligned.c b/arch/mips/kernel/unaligned.c index 7e7d54823486..24b7b053cfe9 100644 --- a/arch/mips/kernel/unaligned.c +++ b/arch/mips/kernel/unaligned.c | |||
@@ -515,7 +515,7 @@ asmlinkage void do_ade(struct pt_regs *regs) | |||
515 | goto sigbus; | 515 | goto sigbus; |
516 | 516 | ||
517 | pc = (unsigned int __user *) exception_epc(regs); | 517 | pc = (unsigned int __user *) exception_epc(regs); |
518 | if ((current->thread.mflags & MF_FIXADE) == 0) | 518 | if (user_mode(regs) && (current->thread.mflags & MF_FIXADE) == 0) |
519 | goto sigbus; | 519 | goto sigbus; |
520 | 520 | ||
521 | /* | 521 | /* |