Loading drivers/gpu/msm/kgsl.c +9 −0 Original line number Diff line number Diff line Loading @@ -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; } Loading Loading
drivers/gpu/msm/kgsl.c +9 −0 Original line number Diff line number Diff line Loading @@ -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; } Loading