diff options
Diffstat (limited to 'mm/gup.c')
-rw-r--r-- | mm/gup.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mm/gup.c b/mm/gup.c index 04aa405350dc..3f2338ba3402 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -1216,9 +1216,6 @@ static int gup_pte_range(pmd_t pmd, unsigned long addr, unsigned long end, pte_protnone(pte) || (write && !pte_write(pte))) goto pte_unmap; - if (!arch_pte_access_permitted(pte, write)) - goto pte_unmap; - VM_BUG_ON(!pfn_valid(pte_pfn(pte))); page = pte_page(pte); head = compound_head(page); |