diff options
Diffstat (limited to 'arch/score/mm/fault.c')
-rw-r--r-- | arch/score/mm/fault.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/score/mm/fault.c b/arch/score/mm/fault.c index 6860beb2a280..b946291e60d1 100644 --- a/arch/score/mm/fault.c +++ b/arch/score/mm/fault.c @@ -73,7 +73,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long write, * If we're in an interrupt or have no user * context, we must not take the fault.. */ - if (in_atomic() || !mm) + if (!mm || pagefault_disabled()) goto bad_area_nosemaphore; if (user_mode(regs)) |