Skip to contentSkip to conversation

crypto: ccp - unmap pages and remove unmap objects in callback

PATCH In review Gary R Hook 2 participants 2 messages Sep 5, 2017 – Oct 7, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: ccp - unmap pages and remove unmap objects in callback

From: amd <[email protected]>

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.

---
 drivers/crypto/ccp/ccp-dmaengine.c |    1 +
 1 file changed, 1 insertion(+)
drivers/crypto/ccp/ccp-dmaengine.c +1 -0
index 901343dd513e..e01b08a28ce5 100644
@@ -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);
maintainer
#1 lore raw
Quoted 7 lines · Gary R Hook

From: amd <[email protected]>

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.

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt