diff mbox

dmaengine:fsldma: fix memory leak

Message ID 1457416921-29147-1-git-send-email-xuelin.shi@nxp.com (mailing list archive)
State Accepted
Headers show

Commit Message

xuelin.shi@nxp.com March 8, 2016, 6:02 a.m. UTC
From: Xuelin Shi <xuelin.shi@nxp.com>

adding unmap of sources and destinations while doing dequeue.

Signed-off-by: Xuelin Shi <xuelin.shi@nxp.com>
---
 drivers/dma/fsldma.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Vinod Koul March 9, 2016, 3:36 p.m. UTC | #1
On Tue, Mar 08, 2016 at 02:02:01PM +0800, xuelin.shi@nxp.com wrote:
> From: Xuelin Shi <xuelin.shi@nxp.com>
> 
> adding unmap of sources and destinations while doing dequeue.

Applied, thanks
diff mbox

Patch

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 */