All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dmaengine:fsldma: fix memory leak
@ 2016-03-08  6:02 xuelin.shi
  2016-03-09 15:36 ` Vinod Koul
  0 siblings, 1 reply; 2+ messages in thread
From: xuelin.shi @ 2016-03-08  6:02 UTC (permalink / raw)
  To: vinod.koul, pku.leo; +Cc: linuxppc-dev, dmaengine, Xuelin Shi

From: Xuelin Shi <xuelin.shi@nxp.com>

adding unmap of sources and destinations while doing dequeue.

Signed-off-by: Xuelin Shi <xuelin.shi@nxp.com>
---
 drivers/dma/fsldma.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c
index 2209f75..aac85c3 100644
--- a/drivers/dma/fsldma.c
+++ b/drivers/dma/fsldma.c
@@ -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 */
-- 
1.8.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] dmaengine:fsldma: fix memory leak
  2016-03-08  6:02 [PATCH] dmaengine:fsldma: fix memory leak xuelin.shi
@ 2016-03-09 15:36 ` Vinod Koul
  0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2016-03-09 15:36 UTC (permalink / raw)
  To: xuelin.shi; +Cc: pku.leo, linuxppc-dev, dmaengine

On Tue, Mar 08, 2016 at 02:02:01PM +0800, xuelin.shi@nxp.com wrote:
> From: Xuelin Shi <xuelin.shi@nxp.com>
> 
> adding unmap of sources and destinations while doing dequeue.

Applied, thanks

-- 
~Vinod

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-09 15:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-08  6:02 [PATCH] dmaengine:fsldma: fix memory leak xuelin.shi
2016-03-09 15:36 ` Vinod Koul

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.