aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/mm/fault.c')
-rw-r--r--arch/sh/mm/fault.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/sh/mm/fault.c b/arch/sh/mm/fault.c
index a58fec9b55e0..79d8276377d1 100644
--- a/arch/sh/mm/fault.c
+++ b/arch/sh/mm/fault.c
@@ -17,6 +17,7 @@
17#include <linux/kprobes.h> 17#include <linux/kprobes.h>
18#include <linux/perf_event.h> 18#include <linux/perf_event.h>
19#include <linux/kdebug.h> 19#include <linux/kdebug.h>
20#include <linux/uaccess.h>
20#include <asm/io_trapped.h> 21#include <asm/io_trapped.h>
21#include <asm/mmu_context.h> 22#include <asm/mmu_context.h>
22#include <asm/tlbflush.h> 23#include <asm/tlbflush.h>
@@ -438,9 +439,9 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs,
438 439
439 /* 440 /*
440 * If we're in an interrupt, have no user context or are running 441 * If we're in an interrupt, have no user context or are running
441 * in an atomic region then we must not take the fault: 442 * with pagefaults disabled then we must not take the fault:
442 */ 443 */
443 if (unlikely(in_atomic() || !mm)) { 444 if (unlikely(faulthandler_disabled() || !mm)) {
444 bad_area_nosemaphore(regs, error_code, address); 445 bad_area_nosemaphore(regs, error_code, address);
445 return; 446 return;
446 } 447 }