From: Colin Cross Date: Sat, 14 Dec 2013 03:26:29 +0000 (-0800) Subject: ion: carveout heap: zero buffers on free, fix memory leak X-Git-Tag: v3.14-rc1~150^2~368 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed5bf01aac7a524a1ca05f96947aeba8363cb669;p=pandora-kernel.git 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 Signed-off-by: John Stultz Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed