diff options
author | Gary R Hook <gary.hook@amd.com> | 2017-01-28 00:09:04 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-02-03 10:45:46 +0100 |
commit | e5da5c5667381d2772374ee6a2967b3576c9483d (patch) | |
tree | 426bc8a0a32233f28da1fa913e99b4a6c30b64db /drivers/crypto/ccp/ccp-dev.h | |
parent | crypto: ccp - Fix DMA operations when IOMMU is enabled (diff) | |
download | linux-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.h | 1 |
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; |