dmaengine: fsldma: fix memory leak

adding unmap of sources and destinations while doing dequeue.

Signed-off-by: Xuelin Shi <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
Xuelin Shi 2016-03-08 14:02:01 +08:00 • committed by Vinod Koul
commit a9af316c83

View file

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