[PATCH] dma driver: fix potential oom issue of fsldma

From
Xuelin Shi <hidden>
Date
2015-12-24 09:17:51
From: Xuelin Shi <redacted>

missing unmap sources and destinations while doing dequeue.

Signed-off-by: Xuelin Shi <redacted>
---
 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
Thread (3 messages) 3 messages, 2 authors, last reply 2016-03-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help