Skip to contentSkip to conversation

mctp: test: fix skb free in test device tx

PATCH Applied Jeremy Kerr 2 participants 2 messages Nov 29, 2021

Subsystems (3)
lore
Share & tools
lore

Jeremy Kerr

author maintainer
#0 lore raw

PATCH 1/1 mctp: test: fix skb free in test device tx

In our test device, we're currently freeing skbs in the transmit path with kfree(), rather than kfree_skb(). This change uses the correct kfree_skb() instead.

Fixes ded21b722995 ("mctp: Add test utils")
---
 net/mctp/test/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/mctp/test/utils.c +1 -1
index cc6b8803aa9d..7b7918702592 100644
@@ -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;
 }
 
Signature · 1 line
2.30.2
#1 lore raw
This patch was applied to netdev/net.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <[email protected]>:

Quoted 10 lines · On Mon, 29 Nov 2021 10:16:52 +0800 you wrote:

In our test device, we're currently freeing skbs in the transmit path with kfree(), rather than kfree_skb(). This change uses the correct kfree_skb() instead.

Fixes ded21b722995 ("mctp: Add test utils")

[...]

Here is the summary with links:
- [net] mctp: test: fix skb free in test device tx

    https://git.kernel.org/netdev/net/c/d85195654470

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html