Skip to content

Commit

Permalink
dmaengine: fsldma: fix memory leak
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Xuelin Shi authored and Vinod Koul committed Mar 9, 2016
1 parent f6cede5 commit a9af316
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/dma/fsldma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit a9af316

Please sign in to comment.