dmaengine: fsldma: fix memory leak
adding unmap of sources and destinations while doing dequeue. Signed-off-by: Xuelin Shi <xuelin.shi@nxp.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
f6cede5b49
commit
a9af316c83
1 changed files with 2 additions and 0 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Reference in a new issue