Merge "msm: ion: Modified Secure Display buffer permissions"
This commit is contained in:
commit
7989c135ab
1 changed files with 6 additions and 1 deletions
|
@ -274,11 +274,16 @@ 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;
|
||||
}
|
||||
dest_perms = PERM_READ | PERM_WRITE;
|
||||
|
||||
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);
|
||||
if (ret) {
|
||||
|
|
Loading…
Add table
Reference in a new issue