summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ccp/ccp-dev.h
diff options
context:
space:
mode:
authorGary R Hook <gary.hook@amd.com>2017-01-28 00:09:04 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2017-02-03 10:45:46 +0100
commite5da5c5667381d2772374ee6a2967b3576c9483d (patch)
tree426bc8a0a32233f28da1fa913e99b4a6c30b64db /drivers/crypto/ccp/ccp-dev.h
parentcrypto: ccp - Fix DMA operations when IOMMU is enabled (diff)
downloadlinux-e5da5c5667381d2772374ee6a2967b3576c9483d.tar.xz
linux-e5da5c5667381d2772374ee6a2967b3576c9483d.zip
crypto: ccp - Fix double add when creating new DMA command
Eliminate a double-add by creating a new list to manage command descriptors when created; move the descriptor to the pending list when the command is submitted. Cc: <stable@vger.kernel.org> 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/ccp-dev.h')
-rw-r--r--drivers/crypto/ccp/ccp-dev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/ccp/ccp-dev.h b/drivers/crypto/ccp/ccp-dev.h
index 830f35e6005f..649e5610a5ce 100644
--- a/drivers/crypto/ccp/ccp-dev.h
+++ b/drivers/crypto/ccp/ccp-dev.h
@@ -238,6 +238,7 @@ struct ccp_dma_chan {
struct ccp_device *ccp;
spinlock_t lock;
+ struct list_head created;
struct list_head pending;
struct list_head active;
struct list_head complete;