浏览代码

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>
amd 8 年之前
父节点
当前提交
01c4c097bc
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/crypto/ccp/ccp-dmaengine.c

+ 1 - 0
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);
 				desc->tx_desc.cookie, desc->status);
 
 
 			dma_cookie_complete(tx_desc);
 			dma_cookie_complete(tx_desc);
+			dma_descriptor_unmap(tx_desc);
 		}
 		}
 
 
 		desc = __ccp_next_dma_desc(chan, desc);
 		desc = __ccp_next_dma_desc(chan, desc);