]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine/ste_dma40: fix memory leak due to prepared descriptors
authorPer Forlin <per.forlin@linaro.org>
Mon, 29 Aug 2011 11:33:35 +0000 (13:33 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 5 Sep 2011 11:41:38 +0000 (17:11 +0530)
commit8f2dee25f21e3d177ed2a7e41223a40147e88bf5
tree9b089ea8636b3a8b26a9534b7e1ccf1790c093aa
parentf25c068b208b8ba73fbd0e2c4216e7e29b755336
dmaengine/ste_dma40: fix memory leak due to prepared descriptors

Prepared descriptors that are not submitted will not be freed. Add
prepared descriptor to a list to be able to release them upon
dmaengine_terminate_all().

Signed-off-by: Per Forlin <per.forlin@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ste_dma40.c