summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2013-12-14 07:26:29 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-14 20:59:54 +0400
commited5bf01aac7a524a1ca05f96947aeba8363cb669 (patch)
tree7adabdd0a9658701cb1eed97acdab0b2c9a75154 /include
parentf63958d80c07c04db48812d97ff7450517d80ffa (diff)
downloadlinux-ed5bf01aac7a524a1ca05f96947aeba8363cb669.tar.xz
ion: carveout heap: zero buffers on free, fix memory leak
The carveout heap wasn't zeroing its buffers after use. Create the sg_table during allocate instead of map_dma, to allow using the sg_table during free, and call ion_heap_buffer_zero during free. Also fixes a missing kfree when destroying the table. Signed-off-by: Colin Cross <ccross@android.com> Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions