numam-dpdk/drivers/net/bnxt/tf_core
Weiguo Li a2dfcd1ff6 net/bnxt: fix null dereference in session cleanup
In tf_session_create(), there is a case that with 'tfp->session' still
be NULL and run 'goto cleanup', which will leads to a null dereference
by 'tfp_free(tfp->session->core_data)' in the cleanup.

Fixes: a46bbb5760 ("net/bnxt: update multi device design")
Cc: stable@dpdk.org

Signed-off-by: Weiguo Li <liwg06@foxmail.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
2022-03-07 06:13:05 +01:00
..
bitalloc.c net/bnxt: support shared session 2021-07-08 02:01:49 +02:00
bitalloc.h net/bnxt: cleanup ULP parser and mapper 2021-07-08 02:02:14 +02:00
cfa_resource_types.h net/bnxt: support flow meter drop counter 2021-09-21 05:16:29 +02:00
dpool.c net/bnxt: allocate space dynamically for EM defrag 2021-09-21 06:41:58 +02:00
dpool.h net/bnxt: cleanup ULP parser and mapper 2021-07-08 02:02:14 +02:00
ll.c net/bnxt: add SRAM manager model 2021-09-21 06:11:42 +02:00
ll.h net/bnxt: add SRAM manager model 2021-09-21 06:11:42 +02:00
lookup3.h net/bnxt: modify TRUFLOW HWRM messages 2021-07-08 02:01:48 +02:00
meson.build net/bnxt: add SRAM manager model 2021-09-21 06:11:42 +02:00
rand.c net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
rand.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
stack.c net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
stack.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
tf_common.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
tf_core.c net/bnxt: support TruFlow and AFM SRAM partitioning 2021-11-04 22:13:53 +01:00
tf_core.h net/bnxt: use enum for bank ID 2021-11-04 22:15:10 +01:00
tf_device_p4.c net/bnxt: fix multi adapter 2021-11-17 00:12:58 +01:00
tf_device_p4.h net/bnxt: add Tx TruFlow table config for P4 device 2021-11-04 22:14:11 +01:00
tf_device_p58.c net/bnxt: fix multi adapter 2021-11-17 00:12:58 +01:00
tf_device_p58.h net/bnxt: support TruFlow and AFM SRAM partitioning 2021-11-04 22:13:53 +01:00
tf_device.c net/bnxt: remove settings for multiple session 2021-11-17 00:09:12 +01:00
tf_device.h net/bnxt: use enum for bank ID 2021-11-04 22:15:10 +01:00
tf_em_common.c net/bnxt: update TruFlow core index table 2021-09-21 04:40:22 +02:00
tf_em_common.h net/bnxt: modify TRUFLOW HWRM messages 2021-07-08 02:01:48 +02:00
tf_em_hash_internal.c net/bnxt: enable dynamic pool allocator 2021-09-21 04:58:30 +02:00
tf_em_host.c net/bnxt: modify TRUFLOW HWRM messages 2021-07-08 02:01:48 +02:00
tf_em_internal.c net/bnxt: add SRAM manager shared session 2021-09-21 06:42:08 +02:00
tf_em.h net/bnxt: enable dynamic pool allocator 2021-09-21 04:58:30 +02:00
tf_ext_flow_handle.h net/bnxt: update TRUFLOW resources 2021-06-09 21:20:42 +02:00
tf_global_cfg.c net/bnxt: fix multi adapter 2021-11-17 00:12:58 +01:00
tf_global_cfg.h net/bnxt: fix multi adapter 2021-11-17 00:12:58 +01:00
tf_hash.c net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
tf_hash.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
tf_identifier.c net/bnxt: refactor host session failure cleanup 2021-07-08 02:01:54 +02:00
tf_identifier.h net/bnxt: support shared session 2021-07-08 02:01:49 +02:00
tf_if_tbl.c net/bnxt: remove settings for multiple session 2021-11-17 00:09:12 +01:00
tf_if_tbl.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
tf_msg_common.h net/bnxt: modify TRUFLOW HWRM messages 2021-07-08 02:01:48 +02:00
tf_msg.c net/bnxt: add TruFlow API to get SRAM resources 2021-11-04 22:13:34 +01:00
tf_msg.h net/bnxt: add TruFlow API to get SRAM resources 2021-11-04 22:13:34 +01:00
tf_project.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
tf_resources.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
tf_rm.c net/bnxt: add TruFlow API to get SRAM resources 2021-11-04 22:13:34 +01:00
tf_rm.h net/bnxt: add SRAM manager model 2021-09-21 06:11:42 +02:00
tf_session.c net/bnxt: fix null dereference in session cleanup 2022-03-07 06:13:05 +01:00
tf_session.h net/bnxt: remove settings for multiple session 2021-11-17 00:09:12 +01:00
tf_shadow_identifier.c net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
tf_shadow_identifier.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
tf_shadow_tcam.c net/bnxt: cleanup ULP parser and mapper 2021-07-08 02:02:14 +02:00
tf_shadow_tcam.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
tf_sram_mgr.c net/bnxt: fix SRAM resource free block list 2021-11-17 00:11:01 +01:00
tf_sram_mgr.h net/bnxt: add TruFlow API to get SRAM resources 2021-11-04 22:13:34 +01:00
tf_tbl_sram.c net/bnxt: support clear on read 2021-11-04 21:52:45 +01:00
tf_tbl_sram.h net/bnxt: add SRAM manager model 2021-09-21 06:11:42 +02:00
tf_tbl.c net/bnxt: use enum for bank ID 2021-11-04 22:15:10 +01:00
tf_tbl.h net/bnxt: add SRAM manager model 2021-09-21 06:11:42 +02:00
tf_tcam_shared.c net/bnxt: add SRAM manager model 2021-09-21 06:11:42 +02:00
tf_tcam_shared.h net/bnxt: add functions to clear TCAM regions 2021-07-08 02:01:55 +02:00
tf_tcam.c net/bnxt: add flow templates for Thor 2021-09-21 06:40:18 +02:00
tf_tcam.h net/bnxt: add SRAM manager model 2021-09-21 06:11:42 +02:00
tf_util.c net/bnxt: add SRAM manager model 2021-09-21 06:11:42 +02:00
tf_util.h net/bnxt: add functions to clear TCAM regions 2021-07-08 02:01:55 +02:00
tfp.c fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
tfp.h fix spelling in comments and strings 2022-01-11 12:16:53 +01:00