linux_dsm_epyc7002/drivers/net/ethernet/broadcom
Michael Chan 1f83391bd6 bnxt_en: Fix possible crash in bnxt_hwrm_ring_free() under error conditions.
If we encounter errors during open and proceed to clean up,
bnxt_hwrm_ring_free() may crash if the rings we try to free have never
been allocated.  bnxt_cp_ring_for_rx() or bnxt_cp_ring_for_tx()
may reference pointers that have not been allocated.

Fix it by checking for valid fw_ring_id first before calling
bnxt_cp_ring_for_rx() or bnxt_cp_ring_for_tx().

Fixes: 2c61d2117e ("bnxt_en: Add helper functions to get firmware CP ring ID.")
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-04-27 17:00:18 -04:00
..
bnx2x bnx2x: fix spelling mistake "dicline" -> "decline" 2019-04-15 17:23:09 -07:00
bnxt bnxt_en: Fix possible crash in bnxt_hwrm_ring_free() under error conditions. 2019-04-27 17:00:18 -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
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
bnx2.h
cnic_defs.h
cnic_if.h
cnic.c
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