[PATCH] dmaengine:fsldma: fix memory leak

Subsystems: dma generic offload engine subsystem, freescale dma driver, the rest

STALE3800d

2 messages, 2 authors, 2016-03-09 · open the first message on its own page

[PATCH] dmaengine:fsldma: fix memory leak

From: <hidden>
Date: 2016-03-08 08:00:19

From: Xuelin Shi <redacted>

adding unmap of sources and destinations while doing dequeue.

Signed-off-by: Xuelin Shi <redacted>
---
 drivers/dma/fsldma.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c
index 2209f75..aac85c3 100644
--- a/drivers/dma/fsldma.c
+++ b/drivers/dma/fsldma.c
@@ -522,6 +522,8 @@ static dma_cookie_t fsldma_run_tx_complete_actions(struct fsldma_chan *chan,
 			chan_dbg(chan, "LD %p callback\n", desc);
 			txd->callback(txd->callback_param);
 		}
+
+		dma_descriptor_unmap(txd);
 	}
 
 	/* Run any dependencies */
-- 
1.8.4

Re: [PATCH] dmaengine:fsldma: fix memory leak

From: Vinod Koul <hidden>
Date: 2016-03-09 15:33:11

On Tue, Mar 08, 2016 at 02:02:01PM +0800, xuelin.shi@nxp.com wrote:
From: Xuelin Shi <redacted>

adding unmap of sources and destinations while doing dequeue.
Applied, thanks

-- 
~Vinod
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help