diff options
| author | Vinayak Menon <vinmenon@codeaurora.org> | 2018-06-13 20:59:29 +0530 |
|---|---|---|
| committer | Vinayak Menon <vinmenon@codeaurora.org> | 2018-06-18 13:28:38 +0530 |
| commit | 34d3a71963d95fdde574acd6c7425e2c42480aa7 (patch) | |
| tree | cb3b42697758c0690e6acedf954bbf4c8d06f219 /kernel/power/hibernate.c | |
| parent | 9912a8c48b234943a431fc157d33d1c70356a3a0 (diff) | |
ion: invalidate the pool pointers after free
ion_system_heap_destroy_pools frees the pool, but
does not invalidate the pointer. This can result in
a double free if ion_system_heap_create_pools fails,
and then causes ion_system_heap_create to call into
ion_system_heap_destroy_pools again from the error
path. This can happen in ion_system_heap_create when
one of the secure pool creation fails.
Change-Id: Ic73ca78722aa5a575cc4dd7c1caa560b518094f2
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Diffstat (limited to 'kernel/power/hibernate.c')
0 files changed, 0 insertions, 0 deletions
