]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
benet: fix return value check in be_lancer_xmit_workarounds()
authorYuanjun Gong <ruc_gongyuanjun@163.com>
Tue, 25 Jul 2023 03:27:26 +0000 (11:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:22:36 +0000 (10:22 +0200)
commit42afa7ef6629ae237ba5fb6a4c60e8bf0b41206b
tree5e935e09096f940681a4f40be147e63fc2792066
parent95cf4fa31b0cebeef9cb98654386037077d06dcd
benet: fix return value check in be_lancer_xmit_workarounds()

[ Upstream commit 5c85f7065718a949902b238a6abd8fc907c5d3e0 ]

in be_lancer_xmit_workarounds(), it should go to label 'tx_drop'
if an unexpected value is returned by pskb_trim().

Fixes: 93040ae5cc8d ("be2net: Fix to trim skb for padded vlan packets to workaround an ASIC Bug")
Signed-off-by: Yuanjun Gong <ruc_gongyuanjun@163.com>
Link: https://lore.kernel.org/r/20230725032726.15002-1-ruc_gongyuanjun@163.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/emulex/benet/be_main.c