]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - arch/unicore32/mm/fault.c
Merge branch '4.0.8-rt6'
[zynq/linux.git] / arch / unicore32 / mm / fault.c
index 0dc922dba9154d7cfcfe5352ec8ec77169e8082f..afccef5529ccb8d44409519aa075476af747722e 100644 (file)
@@ -218,7 +218,7 @@ static int do_pf(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
         * If we're in an interrupt or have no user
         * context, we must not take the fault..
         */
-       if (in_atomic() || !mm)
+       if (faulthandler_disabled() || !mm)
                goto no_context;
 
        if (user_mode(regs))