Commit 9cc0ea6b authored by Thomas Gleixner's avatar Thomas Gleixner

arm: Prepare decoupling page-fault logic from preempt-count

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 4beedc41
......@@ -258,7 +258,7 @@ do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
* If we're in an interrupt or have no user
* context, we must not take the fault..
*/
if (in_atomic() || !mm)
if (in_atomic() || !mm || current->pagefault_disabled)
goto no_context;
/*
......
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