dmaengine: fsldma: fix memory leak
authorXuelin Shi <xuelin.shi@nxp.com>
Tue, 8 Mar 2016 06:02:01 +0000 (14:02 +0800)
committerVinod Koul <vinod.koul@intel.com>
Wed, 9 Mar 2016 06:45:22 +0000 (12:15 +0530)
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>
drivers/dma/fsldma.c

index 2209f75fdf05bf29114f0fb3ffedff89f55b43f3..aac85c30c2cf6fc64669841c5b6abb5317df1b94 100644 (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 */