Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
ci/Intel-compilation | success | Compilation OK |
Commit Message
Qi Zhang
June 3, 2020, 2:40 a.m. UTC
This patch add initialization for prof_res_bm_init flag to zero in order that the possible resource for fv in the files can be initialized. Fixes: 453d087ccaff ("net/ice/base: add common functions") Cc: stable@dpdk.org Signed-off-by: Wei Zhao <wei.zhao1@intel.com> Signed-off-by: Paul M. Stillwell Jr <paul.m.stillwell.jr@intel.com> Signed-off-by: Qi Zhang <qi.z.zhang@intel.com> --- drivers/net/ice/base/ice_common.c | 1 + 1 file changed, 1 insertion(+)
Comments
Hi, Qi > -----Original Message----- > From: Zhang, Qi Z <qi.z.zhang@intel.com> > Sent: Wednesday, June 3, 2020 10:40 > To: Yang, Qiming <qiming.yang@intel.com> > Cc: dev@dpdk.org; Ye, Xiaolong <xiaolong.ye@intel.com>; Zhang, Qi Z > <qi.z.zhang@intel.com>; stable@dpdk.org; Zhao1, Wei > <wei.zhao1@intel.com>; Stillwell Jr, Paul M <paul.m.stillwell.jr@intel.com> > Subject: [PATCH 49/52] net/ice/base: fix uninitialized flag > > This patch add initialization for prof_res_bm_init flag to zero in order that the > possible resource for fv in the files can be initialized. What's the 'fv' means? > > Fixes: 453d087ccaff ("net/ice/base: add common functions") > Cc: stable@dpdk.org > > Signed-off-by: Wei Zhao <wei.zhao1@intel.com> > Signed-off-by: Paul M. Stillwell Jr <paul.m.stillwell.jr@intel.com> > Signed-off-by: Qi Zhang <qi.z.zhang@intel.com> > --- > drivers/net/ice/base/ice_common.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/ice/base/ice_common.c > b/drivers/net/ice/base/ice_common.c > index 54112e8f2..baaeee321 100644 > --- a/drivers/net/ice/base/ice_common.c > +++ b/drivers/net/ice/base/ice_common.c > @@ -536,6 +536,7 @@ enum ice_status ice_init_fltr_mgmt_struct(struct > ice_hw *hw) > return ICE_ERR_NO_MEMORY; > > INIT_LIST_HEAD(&sw->vsi_list_map_head); > + sw->prof_res_bm_init = 0; > > status = ice_init_def_sw_recp(hw, &hw->switch_info->recp_list); > if (status) { > -- > 2.13.6
diff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c index 54112e8f2..baaeee321 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -536,6 +536,7 @@ enum ice_status ice_init_fltr_mgmt_struct(struct ice_hw *hw) return ICE_ERR_NO_MEMORY; INIT_LIST_HEAD(&sw->vsi_list_map_head); + sw->prof_res_bm_init = 0; status = ice_init_def_sw_recp(hw, &hw->switch_info->recp_list); if (status) {