aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'arch/tile/mm/hugetlbpage.c')
-rw-r--r--arch/tile/mm/hugetlbpage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/tile/mm/hugetlbpage.c b/arch/tile/mm/hugetlbpage.c
index c034dc3fe2d4..c97ee6c7f949 100644
--- a/arch/tile/mm/hugetlbpage.c
+++ b/arch/tile/mm/hugetlbpage.c
@@ -232,7 +232,7 @@ unsigned long hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
232 addr = ALIGN(addr, huge_page_size(h)); 232 addr = ALIGN(addr, huge_page_size(h));
233 vma = find_vma(mm, addr); 233 vma = find_vma(mm, addr);
234 if (TASK_SIZE - len >= addr && 234 if (TASK_SIZE - len >= addr &&
235 (!vma || addr + len <= vma->vm_start)) 235 (!vma || addr + len <= vm_start_gap(vma)))
236 return addr; 236 return addr;
237 } 237 }
238 if (current->mm->get_unmapped_area == arch_get_unmapped_area) 238 if (current->mm->get_unmapped_area == arch_get_unmapped_area)