diff mbox series

[net,v4,04/10] ch_ktls: incorrect use of GFP_KERNEL

Message ID 20201030180225.11089-5-rohitm@chelsio.com (mailing list archive)
State Not Applicable
Delegated to: Netdev Maintainers
Headers show
Series cxgb4/ch_ktls: Fixes in nic tls code | expand

Commit Message

Rohit Maheshwari Oct. 30, 2020, 6:02 p.m. UTC
Use of GFP_KERNEL under lock is not correct. Replacing it
with GFP_ATOMIC.

Signed-off-by: Rohit Maheshwari <rohitm@chelsio.com>
---
 drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c b/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c
index a1448a1b38fd..379d4d1220b1 100644
--- a/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c
+++ b/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c
@@ -1675,7 +1675,7 @@  static int chcr_end_part_handler(struct chcr_ktls_info *tx_info,
 	} else {
 		dev_kfree_skb_any(skb);
 
-		nskb = alloc_skb(0, GFP_KERNEL);
+		nskb = alloc_skb(0, GFP_ATOMIC);
 		if (!nskb)
 			return NETDEV_TX_BUSY;
 		/* copy complete record in skb */