diff options
Diffstat (limited to 'arch/m32r/mm/fault.c')
-rw-r--r-- | arch/m32r/mm/fault.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/m32r/mm/fault.c b/arch/m32r/mm/fault.c index e3d4d4890104..8f9875b7933d 100644 --- a/arch/m32r/mm/fault.c +++ b/arch/m32r/mm/fault.c | |||
@@ -24,9 +24,9 @@ | |||
24 | #include <linux/vt_kern.h> /* For unblank_screen() */ | 24 | #include <linux/vt_kern.h> /* For unblank_screen() */ |
25 | #include <linux/highmem.h> | 25 | #include <linux/highmem.h> |
26 | #include <linux/module.h> | 26 | #include <linux/module.h> |
27 | #include <linux/uaccess.h> | ||
27 | 28 | ||
28 | #include <asm/m32r.h> | 29 | #include <asm/m32r.h> |
29 | #include <asm/uaccess.h> | ||
30 | #include <asm/hardirq.h> | 30 | #include <asm/hardirq.h> |
31 | #include <asm/mmu_context.h> | 31 | #include <asm/mmu_context.h> |
32 | #include <asm/tlbflush.h> | 32 | #include <asm/tlbflush.h> |
@@ -111,10 +111,10 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long error_code, | |||
111 | mm = tsk->mm; | 111 | mm = tsk->mm; |
112 | 112 | ||
113 | /* | 113 | /* |
114 | * If we're in an interrupt or have no user context or are running in an | 114 | * If we're in an interrupt or have no user context or have pagefaults |
115 | * atomic region then we must not take the fault.. | 115 | * disabled then we must not take the fault. |
116 | */ | 116 | */ |
117 | if (in_atomic() || !mm) | 117 | if (faulthandler_disabled() || !mm) |
118 | goto bad_area_nosemaphore; | 118 | goto bad_area_nosemaphore; |
119 | 119 | ||
120 | if (error_code & ACE_USERMODE) | 120 | if (error_code & ACE_USERMODE) |