mctp: test: fix skb free in test device tx
Jeremy Kerr
maintainerPATCH 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")
Reported-by kernel test robot <[email protected]>
Reported-by Dan Carpenter <[email protected]>
Signed-off-by Jeremy Kerr <[email protected]>
--- net/mctp/test/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/mctp/test/utils.c +1 -1
@@ -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
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 thankfree_skb(). This change uses the correctkfree_skb()instead.Fixes ded21b722995 ("mctp: Add test utils")Reported-by kernel test robot <[email protected]>Reported-by Dan Carpenter <[email protected]>Signed-off-by Jeremy Kerr <[email protected]>[...]
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