Commit b772e6d2 authored by Ralf Baechle's avatar Ralf Baechle

[MIPS] Always fixup unaligned accesses in kernel mode.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 9b43fb6b
......@@ -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;
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment