Move FAULT_FLAG_xyz into handle_mm_fault() callers
[pandora-kernel.git] / arch / cris / mm / fault.c
index c4c76db..f925115 100644 (file)
@@ -163,7 +163,7 @@ do_page_fault(unsigned long address, struct pt_regs *regs,
         * the fault.
         */
 
-       fault = handle_mm_fault(mm, vma, address, writeaccess & 1);
+       fault = handle_mm_fault(mm, vma, address, (writeaccess & 1) ? FAULT_FLAG_WRITE : 0);
        if (unlikely(fault & VM_FAULT_ERROR)) {
                if (fault & VM_FAULT_OOM)
                        goto out_of_memory;