diff options
author | Gary R Hook <gary.hook@amd.com> | 2017-01-27 17:09:04 -0600 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-02-03 17:45:46 +0800 |
commit | e5da5c5667381d2772374ee6a2967b3576c9483d (patch) | |
tree | 426bc8a0a32233f28da1fa913e99b4a6c30b64db /drivers/crypto/ccp/ccp-dev.h | |
parent | 500c0106e638e08c2c661c305ed57d6b67e10908 (diff) | |
download | linux-e5da5c5667381d2772374ee6a2967b3576c9483d.tar.gz linux-e5da5c5667381d2772374ee6a2967b3576c9483d.tar.bz2 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; |