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

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

Merge "ion: Set the page private bit for secure CMA buffers"

parents 74ff3b7b 0b8a454e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;