Commit a9af316c authored by Xuelin Shi's avatar Xuelin Shi Committed by Vinod Koul

dmaengine: fsldma: fix memory leak

adding unmap of sources and destinations while doing dequeue.
Signed-off-by: default avatarXuelin Shi <xuelin.shi@nxp.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent f6cede5b
...@@ -522,6 +522,8 @@ static dma_cookie_t fsldma_run_tx_complete_actions(struct fsldma_chan *chan, ...@@ -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); chan_dbg(chan, "LD %p callback\n", desc);
txd->callback(txd->callback_param); txd->callback(txd->callback_param);
} }
dma_descriptor_unmap(txd);
} }
/* Run any dependencies */ /* Run any dependencies */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment