OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2017 23:25:33 +0000 (15:25 -0800)
commitf77e7b119ff18d4732b6e08b3d10c4e324de9442
treefe964174e9ec9892571d6b4f4d1f78cc3eb5ed05
parent1105ccf25118894ffde5b50d43c52b9e39fe3fc9
crypto: ccp - Fix double add when creating new DMA command

commit e5da5c5667381d2772374ee6a2967b3576c9483d upstream.

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.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/ccp/ccp-dev.h
drivers/crypto/ccp/ccp-dmaengine.c