Staging: fbtft: Fix bug in fbtft-core
[deliverable/linux.git] / mm / huge_memory.c
index a6abd76baa725d56eb1e9adeb8ee1b6fca86cb80..53ae6d00656aced3b21ebe1af8215fc1112af5eb 100644 (file)
@@ -1138,9 +1138,6 @@ int do_huge_pmd_numa_page(struct fault_env *fe, pmd_t pmd)
        bool was_writable;
        int flags = 0;
 
-       /* A PROT_NONE fault should not end up here */
-       BUG_ON(!(vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE)));
-
        fe->ptl = pmd_lock(vma->vm_mm, fe->pmd);
        if (unlikely(!pmd_same(pmd, *fe->pmd)))
                goto out_unlock;
This page took 0.0254 seconds and 5 git commands to generate.