Skip to content

Commit

Permalink
Revert "msm: kgsl: set vm_pgoff of vma to zero"
Browse files Browse the repository at this point in the history
This reverts commit 4f14bca.

Signed-off-by: TogoFire <togofire@mailfence.com>
Change-Id: I371fcb8c3a3b2c09b2f2353fdc72d27b5d076152
  • Loading branch information
TogoFire committed Jul 18, 2024
1 parent df6b114 commit 7bad156
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions drivers/gpu/msm/kgsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -4280,15 +4280,6 @@ static int kgsl_mmap(struct file *file, struct vm_area_struct *vma)

atomic_inc(&entry->map_count);

/*
* 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, vma->vm_start);
return 0;
}
Expand Down

0 comments on commit 7bad156

Please sign in to comment.