diff options
Diffstat (limited to 'arch/arm64/mm/fault.c')
-rw-r--r-- | arch/arm64/mm/fault.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c index 96da13167d4a..0948d327d013 100644 --- a/arch/arm64/mm/fault.c +++ b/arch/arm64/mm/fault.c | |||
@@ -211,7 +211,7 @@ static int __kprobes do_page_fault(unsigned long addr, unsigned int esr, | |||
211 | * If we're in an interrupt or have no user context, we must not take | 211 | * If we're in an interrupt or have no user context, we must not take |
212 | * the fault. | 212 | * the fault. |
213 | */ | 213 | */ |
214 | if (in_atomic() || !mm) | 214 | if (faulthandler_disabled() || !mm) |
215 | goto no_context; | 215 | goto no_context; |
216 | 216 | ||
217 | if (user_mode(regs)) | 217 | if (user_mode(regs)) |