Skip to content

Commit 895ae87

Browse files
Heesub Shingregkh
authored andcommitted
staging: ion: fixup invalid kfree() calls on heap destroy
I've noticed that the last commit to ion_system_heap.c ('staging: ion: optimize struct ion_system_heap') has an omission, so an invalid kfree() gets called on ion_system_heap_destroy(). As ION system heap is never destroyed until system shutdown, it may not cause any harm, but should be fixed. I should have caught this before the merge, my bad. Signed-off-by: Heesub Shin <heesub.shin@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 32c3f47 commit 895ae87

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/staging/android/ion/ion_system_heap.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,6 @@ void ion_system_heap_destroy(struct ion_heap *heap)
304304

305305
for (i = 0; i < num_orders; i++)
306306
ion_page_pool_destroy(sys_heap->pools[i]);
307-
kfree(sys_heap->pools);
308307
kfree(sys_heap);
309308
}
310309

0 commit comments

Comments
 (0)