ANDROID: ashmem: Use mm_get_unmapped_area() instead of mm->get_unmapped_area()

Upstream commit 529ce23a76 ("mm: switch mm->get_unmapped_area() to a
flag") introduced mm_get_unmapped_area() helper, to be used instead of
mm->get_unmapped_area function pointer.

Fixes: 529ce23a76 ("mm: switch mm->get_unmapped_area() to a flag")
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: I71e315f3cf0691da6ac708bcc9dceb4549098610
This commit is contained in:
Amit Pundir
2024-05-27 21:10:51 +05:30
committed by Will McVicker
parent 4cf63363a7
commit aea463d826
+1 -1
View File
@@ -372,7 +372,7 @@ ashmem_vmfile_get_unmapped_area(struct file *file, unsigned long addr,
unsigned long len, unsigned long pgoff,
unsigned long flags)
{
return current->mm->get_unmapped_area(file, addr, len, pgoff, flags);
return mm_get_unmapped_area(current->mm, file, addr, len, pgoff, flags);
}
static int ashmem_mmap(struct file *file, struct vm_area_struct *vma)