Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b772e6d2 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] Always fixup unaligned accesses in kernel mode.

parent 9b43fb6b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;

	/*