summaryrefslogtreecommitdiff
path: root/drivers/crypto/ccp
diff options
context:
space:
mode:
authoramd <amd@sosxen2.amd.com>2017-09-06 01:01:51 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2017-10-07 07:10:29 +0300
commit01c4c097bcdbf3c3ea288d22f00f469ac139b7bc (patch)
treecd148569ff1016de7d5ac18492a51209ed61c26c /drivers/crypto/ccp
parentf0e2ce58f853634d7ad1a418a49bd5fbd556227c (diff)
downloadlinux-01c4c097bcdbf3c3ea288d22f00f469ac139b7bc.tar.xz
crypto: ccp - unmap pages and remove unmap objects in callback
Clean up the mapped pages and the unmap object once we are done with it. This enables the final clean-up of the object once the transfer is complete. Signed-off-by: Gary R Hook <gary.hook@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccp')
-rw-r--r--drivers/crypto/ccp/ccp-dmaengine.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/ccp/ccp-dmaengine.c b/drivers/crypto/ccp/ccp-dmaengine.c
index d608043c0280..64f4b571202a 100644
--- a/drivers/crypto/ccp/ccp-dmaengine.c
+++ b/drivers/crypto/ccp/ccp-dmaengine.c
@@ -223,6 +223,7 @@ static struct ccp_dma_desc *ccp_handle_active_desc(struct ccp_dma_chan *chan,
desc->tx_desc.cookie, desc->status);
dma_cookie_complete(tx_desc);
+ dma_descriptor_unmap(tx_desc);
}
desc = __ccp_next_dma_desc(chan, desc);