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

Commit 7989c135 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ion: Modified Secure Display buffer permissions"

parents 4ff6b47f 51b8d2c4
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -274,10 +274,15 @@ static int ion_secure_cma_allocate(struct ion_heap *heap,

	source_vm = VMID_HLOS;
	dest_vm = get_secure_vmid(flags);

	if (dest_vm < 0) {
		pr_err("%s: Failed to get secure vmid\n", __func__);
		return -EINVAL;
	}

	if (dest_vm == VMID_CP_SEC_DISPLAY)
		dest_perms = PERM_READ;
	else
		dest_perms = PERM_READ | PERM_WRITE;

	ret = ion_cma_allocate(heap, buffer, len, align, flags);