]> 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:38:26 +0000 (17:08 +0530)
commitd9bfa96ab4959df7f8cc30fb74712e6ecbac0180
tree70bc26dbf87c8d3c82d427903e9dfa6bbcb19c47
parentbaf8f4b8d0c088066cc16298c02bc6a5b17cdd20
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