aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris/mm/fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/cris/mm/fault.c')
-rw-r--r--arch/cris/mm/fault.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/cris/mm/fault.c b/arch/cris/mm/fault.c
index 83f12f2ed9e3..3066d40a6db1 100644
--- a/arch/cris/mm/fault.c
+++ b/arch/cris/mm/fault.c
@@ -8,7 +8,7 @@
8#include <linux/interrupt.h> 8#include <linux/interrupt.h>
9#include <linux/module.h> 9#include <linux/module.h>
10#include <linux/wait.h> 10#include <linux/wait.h>
11#include <asm/uaccess.h> 11#include <linux/uaccess.h>
12#include <arch/system.h> 12#include <arch/system.h>
13 13
14extern int find_fixup_code(struct pt_regs *); 14extern int find_fixup_code(struct pt_regs *);
@@ -109,11 +109,11 @@ do_page_fault(unsigned long address, struct pt_regs *regs,
109 info.si_code = SEGV_MAPERR; 109 info.si_code = SEGV_MAPERR;
110 110
111 /* 111 /*
112 * If we're in an interrupt or "atomic" operation or have no 112 * If we're in an interrupt, have pagefaults disabled or have no
113 * user context, we must not take the fault. 113 * user context, we must not take the fault.
114 */ 114 */
115 115
116 if (in_atomic() || !mm) 116 if (faulthandler_disabled() || !mm)
117 goto no_context; 117 goto no_context;
118 118
119 if (user_mode(regs)) 119 if (user_mode(regs))