From: Dave Jiang Date: Mon, 30 Jan 2017 21:21:17 +0000 (-0700) Subject: ntb: ntb_perf missing dmaengine_unmap_put X-Git-Tag: v4.14-rc1~1537^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9644347c5240d0ee3ba7472ef332aaa4ff4db398;p=platform%2Fkernel%2Flinux-rpi.git 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 Fixes: 8a7b6a77 ("ntb: ntb perf tool") Signed-off-by: Jon Mason --- diff --git a/drivers/ntb/test/ntb_perf.c b/drivers/ntb/test/ntb_perf.c index e75d4fd..434e1d4 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, if (dma_submit_error(cookie)) goto err_set_unmap; + dmaengine_unmap_put(unmap); + atomic_inc(&pctx->dma_sync); dma_async_issue_pending(chan);