]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - arch/um/kernel/trap.c
Merge branch '4.0.8-rt6'
[zynq/linux.git] / arch / um / kernel / trap.c
index 209617302df89e02994b7c1e45df4340826bad05..20b5b7537744de1d86a58d08b06af360babfac75 100644 (file)
@@ -35,10 +35,10 @@ int handle_page_fault(unsigned long address, unsigned long ip,
        *code_out = SEGV_MAPERR;
 
        /*
-        * If the fault was during atomic operation, don't take the fault, just
+        * If the fault was with pagefaults disabled, don't take the fault, just
         * fail.
         */
-       if (in_atomic())
+       if (faulthandler_disabled())
                goto out_nosemaphore;
 
        if (is_user)