OSDN Git Service

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)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 27 Jul 2023 08:31:38 +0000 (10:31 +0200)
commit5c85f7065718a949902b238a6abd8fc907c5d3e0
tree8d6ed8045231d1e56ba52b2e6b9d5868d6b8e1c2
parentff0df20827f6ac32822f9855998c4db3e99af47c
benet: fix return value check in be_lancer_xmit_workarounds()

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>
drivers/net/ethernet/emulex/benet/be_main.c