]> Pileus Git - ~andy/linux/blobdiff - mm/mremap.c
hugetlb: do not allow pagesize >= MAX_ORDER pool adjustment
[~andy/linux] / mm / mremap.c
index b09eefaea0b8c6ea0d126e959453bfc59874525f..9925b6391b8035a547355a8ad9919e9a8f06f920 100644 (file)
@@ -41,6 +41,7 @@ static pmd_t *get_old_pmd(struct mm_struct *mm, unsigned long addr)
                return NULL;
 
        pmd = pmd_offset(pud, addr);
+       split_huge_page_pmd(mm, pmd);
        if (pmd_none_or_clear_bad(pmd))
                return NULL;