linux_dsm_epyc7002/drivers/net/ethernet/broadcom
Michael Chan 0b397b17a4 bnxt_en: Fix uninitialized variable usage in bnxt_rx_pkt().
In bnxt_rx_pkt(), if the driver encounters BD errors, it will recycle
the buffers and jump to the end where the uninitailized variable "len"
is referenced.  Fix it by adding a new jump label that will skip
the length update.  This is the most correct fix since the length
may not be valid when we get this type of error.

Fixes: 6a8788f256 ("bnxt_en: add support for software dynamic interrupt moderation")
Reported-by: Nathan Chancellor <natechancellor@gmail.com>
Cc: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Tested-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-04-27 17:00:19 -04:00
..
bnx2x bnx2x: fix spelling mistake "dicline" -> "decline" 2019-04-15 17:23:09 -07:00
bnxt bnxt_en: Fix uninitialized variable usage in bnxt_rx_pkt(). 2019-04-27 17:00:19 -04:00
genet net: phy: fixed-phy: Drop GPIO from fixed_phy_add() 2019-02-04 18:33:36 -08:00
b44.c net: b44: replace dev_kfree_skb_xxx by dev_consume_skb_xxx for drop profiles 2019-01-29 10:11:42 -08:00
b44.h
bcm63xx_enet.c cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
bcm63xx_enet.h
bcmsysport.c net: systemport: Fix reception of BPDUs 2019-02-15 20:37:54 -08:00
bcmsysport.h net: systemport: Fix WoL with password after deep sleep 2019-02-03 11:23:50 -08:00
bgmac-bcma-mdio.c
bgmac-bcma.c
bgmac-platform.c
bgmac.c net: phy: fixed-phy: Drop GPIO from fixed_phy_add() 2019-02-04 18:33:36 -08:00
bgmac.h
bnx2_fw.h
bnx2.c cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
bnx2.h
cnic_defs.h
cnic_if.h
cnic.c cnic: remove use of VLAN_TAG_PRESENT 2018-11-08 19:49:31 -08:00
cnic.h
Kconfig net: devlink: turn devlink into a built-in 2019-02-26 08:49:05 -08:00
Makefile
sb1250-mac.c net: broadcom: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles 2019-02-06 17:38:15 -08:00
tg3.c broadcom: tg3: fix use of SPEED_UNKNOWN ethtool constant 2019-04-08 16:30:43 -07:00
tg3.h broadcom: tg3: fix use of SPEED_UNKNOWN ethtool constant 2019-04-08 16:30:43 -07:00