diff options
Diffstat (limited to 'arch/m68k/mm/fault.c')
-rw-r--r-- | arch/m68k/mm/fault.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/m68k/mm/fault.c b/arch/m68k/mm/fault.c index b2f04aee46ec..6a94cdd0c830 100644 --- a/arch/m68k/mm/fault.c +++ b/arch/m68k/mm/fault.c | |||
@@ -10,10 +10,10 @@ | |||
10 | #include <linux/ptrace.h> | 10 | #include <linux/ptrace.h> |
11 | #include <linux/interrupt.h> | 11 | #include <linux/interrupt.h> |
12 | #include <linux/module.h> | 12 | #include <linux/module.h> |
13 | #include <linux/uaccess.h> | ||
13 | 14 | ||
14 | #include <asm/setup.h> | 15 | #include <asm/setup.h> |
15 | #include <asm/traps.h> | 16 | #include <asm/traps.h> |
16 | #include <asm/uaccess.h> | ||
17 | #include <asm/pgalloc.h> | 17 | #include <asm/pgalloc.h> |
18 | 18 | ||
19 | extern void die_if_kernel(char *, struct pt_regs *, long); | 19 | extern void die_if_kernel(char *, struct pt_regs *, long); |
@@ -81,7 +81,7 @@ int do_page_fault(struct pt_regs *regs, unsigned long address, | |||
81 | * If we're in an interrupt or have no user | 81 | * If we're in an interrupt or have no user |
82 | * context, we must not take the fault.. | 82 | * context, we must not take the fault.. |
83 | */ | 83 | */ |
84 | if (in_atomic() || !mm) | 84 | if (faulthandler_disabled() || !mm) |
85 | goto no_context; | 85 | goto no_context; |
86 | 86 | ||
87 | if (user_mode(regs)) | 87 | if (user_mode(regs)) |