aboutsummaryrefslogtreecommitdiff
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2013-12-13 19:26:29 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-14 08:59:54 -0800
commited5bf01aac7a524a1ca05f96947aeba8363cb669 (patch)
tree7adabdd0a9658701cb1eed97acdab0b2c9a75154 /drivers/infiniband
parentf63958d80c07c04db48812d97ff7450517d80ffa (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/infiniband')
0 files changed, 0 insertions, 0 deletions