numam-dpdk/drivers/net/bnxt
Ajit Khaparde 6621ae1461 net/bnxt: fix memory leaks in NVM commands
In some cases we may not be freeing up memory allocated for certain
NVM commands because the code might have bailed out before reaching
rte_free(). This patch moves some code around to ensure the allocated
memory is freed before exiting the function.

Fixes: 19e6af01bb ("net/bnxt: support get/set EEPROM")
Cc: stable@dpdk.org

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Reviewed-by: Michael Wildt <michael.wildt@broadcom.com>
Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com>
2018-08-02 12:05:25 +02:00
..
bnxt_cpr.c net/bnxt: use first completion ring for fwd and async event 2018-05-23 00:35:01 +02:00
bnxt_cpr.h net/bnxt: support Tx batching 2018-07-03 01:35:58 +02:00
bnxt_ethdev.c remove useless constructor headers 2018-07-12 00:00:35 +02:00
bnxt_filter.c net/bnxt: check filter type before clearing it 2018-07-03 01:35:58 +02:00
bnxt_filter.h net/bnxt: move function check zero bytes 2018-07-03 01:35:58 +02:00
bnxt_flow.c net/bnxt: fix to move a flow to a different queue 2018-07-03 01:35:58 +02:00
bnxt_hwrm.c net/bnxt: fix memory leaks in NVM commands 2018-08-02 12:05:25 +02:00
bnxt_hwrm.h net/bnxt: check VF resources if resource manager is enabled 2018-07-03 01:35:58 +02:00
bnxt_irq.c net/bnxt: use first completion ring for fwd and async event 2018-05-23 00:35:01 +02:00
bnxt_irq.h net/bnxt: convert to SPDX license tag 2018-04-14 00:40:21 +02:00
bnxt_nvm_defs.h net/bnxt: convert to SPDX license tag 2018-04-14 00:40:21 +02:00
bnxt_ring.c net/bnxt: fix queue start/stop operations 2018-07-03 01:35:58 +02:00
bnxt_ring.h net/bnxt: fix queue start/stop operations 2018-07-03 01:35:58 +02:00
bnxt_rxq.c net/bnxt: fix queue start/stop operations 2018-07-03 01:35:58 +02:00
bnxt_rxq.h net/bnxt: fix queue start/stop operations 2018-07-03 01:35:58 +02:00
bnxt_rxr.c net/bnxt: fix queue start/stop operations 2018-07-03 01:35:58 +02:00
bnxt_rxr.h net/bnxt: optimize Rx processing 2018-07-03 01:35:58 +02:00
bnxt_stats.c net/bnxt: add missing ids in xstats 2018-06-14 19:27:50 +02:00
bnxt_stats.h net/bnxt: convert to SPDX license tag 2018-04-14 00:40:21 +02:00
bnxt_txq.c net/bnxt: validate structs and pointers before use 2018-05-14 22:31:48 +01:00
bnxt_txq.h net/bnxt: support Tx batching 2018-07-03 01:35:58 +02:00
bnxt_txr.c net/bnxt: fix incorrect IO address handling in Tx 2018-07-03 01:35:58 +02:00
bnxt_txr.h net/bnxt: fix HW Tx checksum offload check 2018-07-03 01:35:58 +02:00
bnxt_util.c net/bnxt: move function check zero bytes 2018-07-03 01:35:58 +02:00
bnxt_util.h net/bnxt: move function check zero bytes 2018-07-03 01:35:58 +02:00
bnxt_vnic.c net/bnxt: fix Rx ring count limitation 2018-07-03 01:35:58 +02:00
bnxt_vnic.h net/bnxt: fix Rx ring count limitation 2018-07-03 01:35:58 +02:00
bnxt.h net/bnxt: check VF resources if resource manager is enabled 2018-07-03 01:35:58 +02:00
hsi_struct_def_dpdk.h net/bnxt: update HWRM API to v1.9.2.9 2018-07-03 01:35:58 +02:00
Makefile net/bnxt: refactor filter/flow 2018-07-03 01:35:58 +02:00
meson.build net/bnxt: refactor filter/flow 2018-07-03 01:35:58 +02:00
rte_pmd_bnxt_version.map
rte_pmd_bnxt.c net/bnxt: convert to SPDX license tag 2018-04-14 00:40:21 +02:00
rte_pmd_bnxt.h net/bnxt: convert to SPDX license tag 2018-04-14 00:40:21 +02:00