linux/drivers/net/ethernet/broadcom/bnxt
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
..
bnxt_coredump.h bnxt_en: Add support for ethtool get dump. 2018-08-05 17:08:26 -07:00
bnxt_dcb.c cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
bnxt_dcb.h bnxt_en: Do not use the CNP CoS queue for networking traffic. 2018-08-05 17:08:26 -07:00
bnxt_debugfs.c bnxt_en: add debugfs support for DIM 2018-04-27 14:47:30 -04:00
bnxt_debugfs.h bnxt_en: add debugfs support for DIM 2018-04-27 14:47:30 -04:00
bnxt_devlink.c Revert "devlink: Add a generic wake_on_lan port parameter" 2019-02-12 12:13:22 -05:00
bnxt_devlink.h Revert "devlink: Add a generic wake_on_lan port parameter" 2019-02-12 12:13:22 -05:00
bnxt_dim.c
bnxt_ethtool.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-12-20 11:53:36 -08:00
bnxt_ethtool.h bnxt_en: Add support for ethtool get dump. 2018-08-05 17:08:26 -07:00
bnxt_fw_hdr.h
bnxt_hsi.h bnxt_en: Update firmware interface spec. to 1.10.0.47. 2019-02-19 10:45:14 -08:00
bnxt_nvm_defs.h
bnxt_sriov.c bnxt_en: Propagate trusted VF attribute to firmware. 2019-02-19 10:45:14 -08:00
bnxt_sriov.h bnxt_en: Fix VF mac address regression. 2018-09-17 07:56:35 -07:00
bnxt_tc.c bnxt_en: Return relevant error code when offload fails 2019-02-19 10:45:14 -08:00
bnxt_tc.h bnxt_en: Support for 64-bit flow handle. 2018-12-20 08:26:16 -08:00
bnxt_ulp.c RDMA/bnxt_en: Enable RDMA driver support for 57500 chip 2019-02-07 13:24:49 -07:00
bnxt_ulp.h bnxt_en: get rid of num_stat_ctxs variable 2018-12-17 23:08:53 -08:00
bnxt_vfr.c bnxt: Implement ndo_get_port_parent_id() 2019-02-06 14:16:11 -08:00
bnxt_vfr.h devlink: Add extack for eswitch operations 2018-10-03 16:17:58 -07:00
bnxt_xdp.c bnxt_en: get rid of num_stat_ctxs variable 2018-12-17 23:08:53 -08:00
bnxt_xdp.h
bnxt.c bnxt_en: Fix possible crash in bnxt_hwrm_ring_free() under error conditions. 2019-04-27 17:00:18 -04:00
bnxt.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-02-24 12:06:19 -08:00
Makefile bnxt_en: add debugfs support for DIM 2018-04-27 14:47:30 -04:00