diff options
Diffstat (limited to 'arch/mips/mm/fault.c')
-rw-r--r-- | arch/mips/mm/fault.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c index e97a7a2fb2c0..589f1b9942a9 100644 --- a/arch/mips/mm/fault.c +++ b/arch/mips/mm/fault.c | |||
@@ -75,7 +75,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long write, | |||
75 | * If we're in an interrupt or have no user | 75 | * If we're in an interrupt or have no user |
76 | * context, we must not take the fault.. | 76 | * context, we must not take the fault.. |
77 | */ | 77 | */ |
78 | if (in_atomic() || !mm) | 78 | if (in_atomic() || !mm || current->pagefault_disabled) |
79 | goto bad_area_nosemaphore; | 79 | goto bad_area_nosemaphore; |
80 | 80 | ||
81 | down_read(&mm->mmap_sem); | 81 | down_read(&mm->mmap_sem); |