linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next v2] crypto: ccp - Use list_move_tail instead of list_del/list_add_tail in ccp-dmaengine.c
@ 2021-06-09  7:15 Baokun Li
  2021-06-17  8:00 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Baokun Li @ 2021-06-09  7:15 UTC (permalink / raw)
  To: linux-kernel, Tom Lendacky, John Allen, Herbert Xu, David S. Miller
  Cc: weiyongjun1, yuehaibing, yangjihong1, yukuai3, libaokun1,
	linux-crypto, kernel-janitors, Hulk Robot

Using list_move_tail() instead of list_del() + list_add_tail() in ccp-dmaengine.c.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
---
V1->V2:
	CC mailist

 drivers/crypto/ccp/ccp-dmaengine.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/crypto/ccp/ccp-dmaengine.c b/drivers/crypto/ccp/ccp-dmaengine.c
index 0770a83bf1a5..d718db224be4 100644
--- a/drivers/crypto/ccp/ccp-dmaengine.c
+++ b/drivers/crypto/ccp/ccp-dmaengine.c
@@ -307,8 +307,7 @@ static dma_cookie_t ccp_tx_submit(struct dma_async_tx_descriptor *tx_desc)
 	spin_lock_irqsave(&chan->lock, flags);
 
 	cookie = dma_cookie_assign(tx_desc);
-	list_del(&desc->entry);
-	list_add_tail(&desc->entry, &chan->pending);
+	list_move_tail(&desc->entry, &chan->pending);
 
 	spin_unlock_irqrestore(&chan->lock, flags);
 


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next v2] crypto: ccp - Use list_move_tail instead of list_del/list_add_tail in ccp-dmaengine.c
  2021-06-09  7:15 [PATCH -next v2] crypto: ccp - Use list_move_tail instead of list_del/list_add_tail in ccp-dmaengine.c Baokun Li
@ 2021-06-17  8:00 ` Herbert Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2021-06-17  8:00 UTC (permalink / raw)
  To: Baokun Li
  Cc: linux-kernel, Tom Lendacky, John Allen, David S. Miller,
	weiyongjun1, yuehaibing, yangjihong1, yukuai3, linux-crypto,
	kernel-janitors, Hulk Robot

On Wed, Jun 09, 2021 at 03:15:26PM +0800, Baokun Li wrote:
> Using list_move_tail() instead of list_del() + list_add_tail() in ccp-dmaengine.c.
> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Baokun Li <libaokun1@huawei.com>
> ---
> V1->V2:
> 	CC mailist
> 
>  drivers/crypto/ccp/ccp-dmaengine.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-17  8:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-09  7:15 [PATCH -next v2] crypto: ccp - Use list_move_tail instead of list_del/list_add_tail in ccp-dmaengine.c Baokun Li
2021-06-17  8:00 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).