summaryrefslogtreecommitdiff
path: root/arch/score
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-03-17 10:32:28 (GMT)
committerScott Wood <scottwood@freescale.com>2013-04-04 22:09:09 (GMT)
commit1aebc993d201dd35eb834e5171caef7400a323ff (patch)
treec6c06b7b5f80f59ceb80e08df3309b1be93c8a13 /arch/score
parent86e57c2dc838d57324ccc333a36c32e12df4f11f (diff)
downloadlinux-fsl-qoriq-1aebc993d201dd35eb834e5171caef7400a323ff.tar.xz
mm: Fixup all fault handlers to check current->pagefault_disable
Necessary for decoupling pagefault disable from preempt count. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/score')
-rw-r--r--arch/score/mm/fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/score/mm/fault.c b/arch/score/mm/fault.c
index 47b600e..4c12824 100644
--- a/arch/score/mm/fault.c
+++ b/arch/score/mm/fault.c
@@ -72,7 +72,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long write,
* 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 bad_area_nosemaphore;
down_read(&mm->mmap_sem);