mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
Merge "ion: Set the page private bit for secure CMA buffers"
This commit is contained in:
commit
cacb3774c5
@ -201,7 +201,7 @@ struct ion_heap *ion_cma_heap_create(struct ion_platform_heap *data)
|
||||
static void ion_secure_cma_free(struct ion_buffer *buffer)
|
||||
{
|
||||
if (ion_hyp_unassign_sg_from_flags(buffer->sg_table, buffer->flags,
|
||||
false))
|
||||
true))
|
||||
return;
|
||||
|
||||
ion_cma_free(buffer);
|
||||
@ -220,7 +220,7 @@ static int ion_secure_cma_allocate(
|
||||
goto out;
|
||||
}
|
||||
|
||||
ret = ion_hyp_assign_sg_from_flags(buffer->sg_table, flags, false);
|
||||
ret = ion_hyp_assign_sg_from_flags(buffer->sg_table, flags, true);
|
||||
if (ret)
|
||||
goto out_free_buf;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user