]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ion: fixup invalid kfree() calls on heap destroy
authorHeesub Shin <heesub.shin@samsung.com>
Fri, 20 Jun 2014 02:46:14 +0000 (11:46 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2014 02:58:56 +0000 (19:58 -0700)
commit2c11c41ae35254e2a13f1c3f9f8b8a4cee3ab332
tree0bf7a1ec0a9a90d214b8edcd4505c92d63c2a898
parent38a2946cfe1d4dc18327f30ad03e6456d61d0177
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>
drivers/staging/android/ion/ion_system_heap.c