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

Commit 76723404 authored by Isaac J. Manjarres's avatar Isaac J. Manjarres
Browse files

ion: Use correct heap when freeing secure system heap buffers



Switch the heap for buffers from the secure system heap in
the free path, so that they can be properly released into
the secure pools.

Change-Id: I9873d73efa6f56a2c2ceb8d29e4b594ff30b9bca
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent 2a230de1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ static void ion_system_secure_heap_free(struct ion_buffer *buffer)
	struct ion_system_secure_heap *secure_heap =
		to_system_secure_heap(heap);

	buffer->heap = secure_heap->sys_heap;
	secure_heap->sys_heap->ops->free(buffer);
}