summaryrefslogtreecommitdiff
path: root/arch/score/mm/fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/score/mm/fault.c')
-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 47b600e4b2c5..59fccbe9777b 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 (!mm || pagefault_disabled())
goto bad_area_nosemaphore;
down_read(&mm->mmap_sem);