diff options
Diffstat (limited to 'arch/nios2/mm/fault.c')
-rw-r--r-- | arch/nios2/mm/fault.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/mm/fault.c b/arch/nios2/mm/fault.c index 0c9b6afe69e9..b51878b0c6b8 100644 --- a/arch/nios2/mm/fault.c +++ b/arch/nios2/mm/fault.c | |||
@@ -77,7 +77,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long cause, | |||
77 | * If we're in an interrupt or have no user | 77 | * If we're in an interrupt or have no user |
78 | * context, we must not take the fault.. | 78 | * context, we must not take the fault.. |
79 | */ | 79 | */ |
80 | if (in_atomic() || !mm) | 80 | if (faulthandler_disabled() || !mm) |
81 | goto bad_area_nosemaphore; | 81 | goto bad_area_nosemaphore; |
82 | 82 | ||
83 | if (user_mode(regs)) | 83 | if (user_mode(regs)) |