mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
Merge "ion: Restore secure system heap buffers' heap pointer after being freed"
This commit is contained in:
commit
4d6092f03d
1 changed files with 6 additions and 0 deletions
|
|
@ -68,6 +68,12 @@ static void ion_system_secure_heap_free(struct ion_buffer *buffer)
|
|||
|
||||
buffer->heap = secure_heap->sys_heap;
|
||||
secure_heap->sys_heap->ops->free(buffer);
|
||||
/*
|
||||
* Restore buffer's heap pointer to the system secure heap, so that
|
||||
* the ION memory accounting code uses the system secure heap's stats
|
||||
* instead of the system heap stats.
|
||||
*/
|
||||
buffer->heap = heap;
|
||||
}
|
||||
|
||||
static int ion_system_secure_heap_allocate(struct ion_heap *heap,
|
||||
|
|
|
|||
Loading…
Reference in a new issue