net: rswitch: Fix missing dev_kfree_skb_any() in error path
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 22 Nov 2023 05:11:43 +0000 (14:11 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Dec 2023 07:52:21 +0000 (08:52 +0100)
commit85afa283e07cede89423d665e0c2b5564c37eef1
tree1578def2a794edf4edf99bb432b496d975fed2f8
parent940af3fee268568a96511108c1b610227696cd69
net: rswitch: Fix missing dev_kfree_skb_any() in error path

[ Upstream commit 782486af9b5b76493012711413c141509ac45dec ]

Before returning the rswitch_start_xmit() in the error path,
dev_kfree_skb_any() should be called. So, fix it.

Fixes: 33f5d733b589 ("net: renesas: rswitch: Improve TX timestamp accuracy")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/renesas/rswitch.c