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

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

Merge "msm: kgsl: fix accounting of memory mapped to userspace"

parents 95bf8344 e16c86a1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4853,6 +4853,8 @@ static int kgsl_mmap(struct file *file, struct vm_area_struct *vma)
			vm_insert_page(vma, addr, page);
			addr += PAGE_SIZE;
		}
		m->mapsize = m->size;
		entry->priv->gpumem_mapped += m->mapsize;
	}

	vma->vm_file = file;