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

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

Merge "msm: kgsl: Remove VM_MAYWRITE flag to restrict mprotect"

parents 48bc486c a54b41bc
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4480,6 +4480,8 @@ kgsl_mmap_memstore(struct kgsl_device *device, struct vm_area_struct *vma)
	if (vma->vm_flags & VM_WRITE)
		return -EPERM;

	vma->vm_flags &= ~VM_MAYWRITE;

	if (memdesc->size  !=  vma_size) {
		dev_err(device->dev,
			     "memstore bad size: %d should be %llu\n",