numam-dpdk/drivers/net/bnxt
Kalesh AP 39a03b401e net/bnxt: fix double free in port start failure
During port start when bnxt_start_nic() fails, it tries to free
"intr_handle->intr_vec" but the variable is not set to NULL after that.
If port start fails, driver invokes bnxt_dev_stop() which will lead
to a double free of "intr_handle->intr_vec".

Fix it by removing the call to free "intr_handle->intr_vec" in the
bnxt_start_nic() failure path as it is anyway doing in bnxt_dev_stop().

Fixes: 9d276b439a ("net/bnxt: fix error handling in device start")
Cc: stable@dpdk.org

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
2021-04-07 04:56:03 +02:00
..
hcapi net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
tf_core net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
tf_ulp net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_cpr.c net/bnxt: handle echo request async message 2021-03-12 07:00:22 +01:00
bnxt_cpr.h net/bnxt: fix Rx queue count 2021-03-01 01:26:10 +01:00
bnxt_ethdev.c net/bnxt: fix double free in port start failure 2021-04-07 04:56:03 +02:00
bnxt_filter.c net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_filter.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_flow.c net/bnxt: fix handling of null flow mask 2021-03-19 20:29:56 +01:00
bnxt_hwrm.c net/bnxt: fix memory allocation for command response 2021-03-22 19:27:47 +01:00
bnxt_hwrm.h net/bnxt: fix VF info allocation 2021-03-12 07:13:28 +01:00
bnxt_irq.c net/bnxt: rename a member to avoid conflict 2021-03-12 07:13:49 +01:00
bnxt_irq.h net/bnxt: rename a member to avoid conflict 2021-03-12 07:13:49 +01:00
bnxt_nvm_defs.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_reps.c ethdev: replace callback getting filter operations 2021-03-26 18:37:13 +01:00
bnxt_reps.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_ring.c net/bnxt: optimize Tx completion handling 2021-03-12 16:07:33 +01:00
bnxt_ring.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_rxq.c net/bnxt: refactor mbuf pointer reset 2021-03-12 07:13:27 +01:00
bnxt_rxq.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_rxr.c net/bnxt: fix Rx buffer posting 2021-03-19 20:29:56 +01:00
bnxt_rxr.h net/bnxt: fix Rx buffer posting 2021-03-19 20:29:56 +01:00
bnxt_rxtx_vec_common.h net/bnxt: optimize Tx completion handling 2021-03-12 16:07:33 +01:00
bnxt_rxtx_vec_neon.c net/bnxt: optimize Tx completion handling 2021-03-12 16:07:33 +01:00
bnxt_rxtx_vec_sse.c net/bnxt: optimize Tx completion handling 2021-03-12 16:07:33 +01:00
bnxt_stats.c net/bnxt: fix xstats get 2021-03-12 16:24:53 +01:00
bnxt_stats.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_txq.c net/bnxt: optimize Tx completion handling 2021-03-12 16:07:33 +01:00
bnxt_txq.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_txr.c net/bnxt: fix Tx length hint threshold 2021-03-19 20:29:56 +01:00
bnxt_txr.h net/bnxt: optimize Tx completion handling 2021-03-12 16:07:33 +01:00
bnxt_util.c net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_util.h net/bnxt: fix firmware fatal error handling 2021-03-12 07:00:22 +01:00
bnxt_vnic.c net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_vnic.h net/bnxt: fix VNIC configuration 2021-03-12 07:00:20 +01:00
bnxt.h ethdev: replace callback getting filter operations 2021-03-26 18:37:13 +01:00
hsi_struct_def_dpdk.h net/bnxt: update HWRM structures 2021-03-12 07:00:21 +01:00
meson.build drivers/net: build i40e and mlx5 on Windows 2021-01-14 23:51:24 +01:00
rte_pmd_bnxt.c net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
rte_pmd_bnxt.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
version.map build: remove library name from version map file name 2020-10-19 22:13:59 +02:00