]> err.no Git - linux-2.6/blobdiff - arch/arm/mm/fault.c
Merge ../linus
[linux-2.6] / arch / arm / mm / fault.c
index a5b33ff3924edc35c216f93232031f802651c4ad..9fd6d2eafb40c0bf06e80c0643f7d5bb020f8173 100644 (file)
@@ -198,7 +198,7 @@ survive:
                return fault;
        }
 
-       if (tsk->pid != 1)
+       if (!is_init(tsk))
                goto out;
 
        /*
@@ -230,7 +230,7 @@ do_page_fault(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_interrupt() || !mm)
+       if (in_atomic() || !mm)
                goto no_context;
 
        /*