]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: ccp - Fix double add when creating new DMA command
authorGary R Hook <gary.hook@amd.com>
Fri, 27 Jan 2017 23:09:04 +0000 (17:09 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Feb 2017 09:45:46 +0000 (17:45 +0800)
commite5da5c5667381d2772374ee6a2967b3576c9483d
tree426bc8a0a32233f28da1fa913e99b4a6c30b64db
parent500c0106e638e08c2c661c305ed57d6b67e10908
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>
drivers/crypto/ccp/ccp-dev.h
drivers/crypto/ccp/ccp-dmaengine.c