[MIPS] Always fixup unaligned accesses in kernel mode.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
9b43fb6bc1
commit
b772e6d272
|
@ -515,7 +515,7 @@ asmlinkage void do_ade(struct pt_regs *regs)
|
|||
goto sigbus;
|
||||
|
||||
pc = (unsigned int __user *) exception_epc(regs);
|
||||
if ((current->thread.mflags & MF_FIXADE) == 0)
|
||||
if (user_mode(regs) && (current->thread.mflags & MF_FIXADE) == 0)
|
||||
goto sigbus;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue