diff options
author | Colin Cross <ccross@android.com> | 2013-12-13 19:26:29 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-14 08:59:54 -0800 |
commit | ed5bf01aac7a524a1ca05f96947aeba8363cb669 (patch) | |
tree | 7adabdd0a9658701cb1eed97acdab0b2c9a75154 /drivers/media | |
parent | f63958d80c07c04db48812d97ff7450517d80ffa (diff) |
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 'drivers/media')
0 files changed, 0 insertions, 0 deletions