提交 b772e6d2 编写于 作者: R Ralf Baechle

[MIPS] Always fixup unaligned accesses in kernel mode.

Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 9b43fb6b
...@@ -515,7 +515,7 @@ asmlinkage void do_ade(struct pt_regs *regs) ...@@ -515,7 +515,7 @@ asmlinkage void do_ade(struct pt_regs *regs)
goto sigbus; goto sigbus;
pc = (unsigned int __user *) exception_epc(regs); 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; goto sigbus;
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册