Bug 980 - bnxt: use of uninitalized data
Summary: bnxt: use of uninitalized data
Status: UNCONFIRMED
Alias: None
Product: DPDK
Classification: Unclassified
Component: other (show other bugs)
Version: 21.11
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Ajit Khaparde
URL:
Depends on:
Blocks:
 
Reported: 2022-03-24 16:14 CET by David Marchand
Modified: 2022-03-24 16:14 CET (History)
1 user (show)



Attachments

Description David Marchand 2022-03-24 16:14:39 CET
This has been reported by covscan in our internal CI for v21.11:

1. dpdk-21.11/drivers/net/bnxt/tf_ulp/ulp_mapper.c:1745: var_decl: Declaring variable "fid_parms" without initializer.
8. dpdk-21.11/drivers/net/bnxt/tf_ulp/ulp_mapper.c:1783: uninit_use_in_call: Using uninitialized value "fid_parms.resource_sub_type" when calling "ulp_mapper_fdb_opc_process".
9. dpdk-21.11/drivers/net/bnxt/tf_ulp/ulp_mapper.c:1783: uninit_use_in_call: Using uninitialized value "fid_parms.fdb_flags" when calling "ulp_mapper_fdb_opc_process".
#  1781|   	ulp_flow_db_shared_session_set(&fid_parms, tbl->shared_session);
#  1782|   
#  1783|-> 	rc = ulp_mapper_fdb_opc_process(parms, tbl, &fid_parms);
#  1784|   	if (rc)
#  1785|   		BNXT_TF_DBG(ERR, "Fail to link res to flow rc = %d\n", rc);

Note You need to log in before you can comment on or make changes to this bug.