summaryrefslogtreecommitdiffstats
path: root/drivers/ntb
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2017-01-30 16:21:17 -0500
committerJon Mason <jdmason@kudzu.us>2017-02-16 23:11:26 -0500
commit9644347c5240d0ee3ba7472ef332aaa4ff4db398 (patch)
tree811b6daa9db8dac6d29a082d66df7cd3d0d9b39d /drivers/ntb
parentdd62245e73de9138333cb0e7a42c8bc1215c3ce6 (diff)
ntb: ntb_perf missing dmaengine_unmap_put
In the normal I/O execution path, ntb_perf is missing a call to dmaengine_unmap_put() after submission. That causes us to leak unmap objects. Signed-off-by: Dave Jiang <dave.jiang@intel.com> Fixes: 8a7b6a77 ("ntb: ntb perf tool") Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/ntb')
-rw-r--r--drivers/ntb/test/ntb_perf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ntb/test/ntb_perf.c b/drivers/ntb/test/ntb_perf.c
index e75d4fdc0866..434e1d474f33 100644
--- a/drivers/ntb/test/ntb_perf.c
+++ b/drivers/ntb/test/ntb_perf.c
@@ -265,6 +265,8 @@ static ssize_t perf_copy(struct pthr_ctx *pctx, char __iomem *dst,
265 if (dma_submit_error(cookie)) 265 if (dma_submit_error(cookie))
266 goto err_set_unmap; 266 goto err_set_unmap;
267 267
268 dmaengine_unmap_put(unmap);
269
268 atomic_inc(&pctx->dma_sync); 270 atomic_inc(&pctx->dma_sync);
269 dma_async_issue_pending(chan); 271 dma_async_issue_pending(chan);
270 272