[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201030180225.11089-5-rohitm@chelsio.com>
Date: Fri, 30 Oct 2020 23:32:19 +0530
From: Rohit Maheshwari <rohitm@...lsio.com>
To: kuba@...nel.org, netdev@...r.kernel.org, davem@...emloft.net
Cc: secdev@...lsio.com, Rohit Maheshwari <rohitm@...lsio.com>
Subject: [net v4 04/10] ch_ktls: incorrect use of GFP_KERNEL
Use of GFP_KERNEL under lock is not correct. Replacing it
with GFP_ATOMIC.
Signed-off-by: Rohit Maheshwari <rohitm@...lsio.com>
---
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 */
--
2.18.1
Powered by blists - more mailing lists