[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211130031100.768032-1-yangyingliang@huawei.com>
Date: Tue, 30 Nov 2021 11:11:00 +0800
From: Yang Yingliang <yangyingliang@...wei.com>
To: <linux-kernel@...r.kernel.org>, <netdev@...r.kernel.org>
CC: <jk@...econstruct.com.au>, <davem@...emloft.net>, <kuba@...nel.org>
Subject: [PATCH -next] mctp: test: use kfree_skb() instead of kfree()
Use kfree_skb() instead of kfree() to free sk_buff.
Signed-off-by: Yang Yingliang <yangyingliang@...wei.com>
---
net/mctp/test/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/mctp/test/utils.c b/net/mctp/test/utils.c
index cc6b8803aa9d..7b7918702592 100644
--- a/net/mctp/test/utils.c
+++ b/net/mctp/test/utils.c
@@ -12,7 +12,7 @@
static netdev_tx_t mctp_test_dev_tx(struct sk_buff *skb,
struct net_device *ndev)
{
- kfree(skb);
+ kfree_skb(skb);
return NETDEV_TX_OK;
}
--
2.25.1
Powered by blists - more mailing lists