aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r--mm/hugetlb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index ebad6bbb3501..d87885eb4acc 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -697,9 +697,10 @@ int follow_hugetlb_page(struct mm_struct *mm, struct vm_area_struct *vma,
697 pfn_offset = (vaddr & ~HPAGE_MASK) >> PAGE_SHIFT; 697 pfn_offset = (vaddr & ~HPAGE_MASK) >> PAGE_SHIFT;
698 page = pte_page(*pte); 698 page = pte_page(*pte);
699same_page: 699same_page:
700 get_page(page); 700 if (pages) {
701 if (pages) 701 get_page(page);
702 pages[i] = page + pfn_offset; 702 pages[i] = page + pfn_offset;
703 }
703 704
704 if (vmas) 705 if (vmas)
705 vmas[i] = vma; 706 vmas[i] = vma;