Skip to content

Commit a9af316

Browse files
forrest-shi-nxpVinod Koul
authored andcommitted
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>
1 parent f6cede5 commit a9af316

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/dma/fsldma.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,8 @@ static dma_cookie_t fsldma_run_tx_complete_actions(struct fsldma_chan *chan,
522522
chan_dbg(chan, "LD %p callback\n", desc);
523523
txd->callback(txd->callback_param);
524524
}
525+
526+
dma_descriptor_unmap(txd);
525527
}
526528

527529
/* Run any dependencies */

0 commit comments

Comments
 (0)