ANDROID: ashmem: Use mm_get_unmapped_area() instead of mm->get_unmapped_area()
Upstream commit529ce23a76("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:
committed by
Will McVicker
parent
4cf63363a7
commit
aea463d826
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user