diff options
-rw-r--r-- | mm/mempolicy.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 41a42902ef21..3650036bb910 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -1200,10 +1200,8 @@ static struct page *new_page(struct page *page, unsigned long start, int **x) } if (PageHuge(page)) { - if (vma) - return alloc_huge_page_noerr(vma, address, 1); - else - return NULL; + BUG_ON(!vma); + return alloc_huge_page_noerr(vma, address, 1); } /* * if !vma, alloc_page_vma() will use task or system default policy |