Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 */