summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXuelin Shi <xuelin.shi@freescale.com>2014-05-12 02:28:35 (GMT)
committerJose Rivera <German.Rivera@freescale.com>2014-05-12 14:55:07 (GMT)
commitb4e5da71b85f97b4c7443188a7091bcfd5c6d9af (patch)
tree602511f7826c6186d5a973d610992a47eca9d5a2
parent45e80cf3623e5791eb18317fcd17e91c70f42e8c (diff)
downloadlinux-fsl-qoriq-b4e5da71b85f97b4c7443188a7091bcfd5c6d9af.tar.xz
dma: fix oom issue.
missing unmap sources and destinations while doing dequeue. Signed-off-by: Xuelin Shi <xuelin.shi@freescale.com> Change-Id: Ibf51682e6d2db57f00adb2bacab3d2b6d44690e0 Reviewed-on: http://git.am.freescale.net:8181/12191 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Yang Li <LeoLi@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
-rw-r--r--drivers/dma/fsldma.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c
index 7ef96f1..47b11bf 100644
--- a/drivers/dma/fsldma.c
+++ b/drivers/dma/fsldma.c
@@ -531,6 +531,8 @@ static dma_cookie_t fsldma_run_tx_complete_actions(struct fsldma_chan *chan,
}
}
+ dma_descriptor_unmap(txd);
+
/* Run any dependencies */
dma_run_dependencies(txd);