Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0cc3cfe5 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: set vm_pgoff of vma to zero"

parents 665c767a d8d879b5
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -4879,6 +4879,15 @@ static int kgsl_mmap(struct file *file, struct vm_area_struct *vma)

	entry->memdesc.useraddr = vma->vm_start;

	/*
	 * kgsl gets the entry id or the gpu address through vm_pgoff.
	 * It is used during mmap and never needed again. But this vm_pgoff
	 * has different meaning at other parts of kernel. Not setting to
	 * zero will let way for wrong assumption when tried to unmap a page
	 * from this vma.
	 */
	vma->vm_pgoff = 0;

	trace_kgsl_mem_mmap(entry);
	return 0;
}