From: Farah Smith Date: Fri, 17 Jul 2020 14:14:39 +0000 (+0530) Subject: net/bnxt: initialize table scope parameter X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6511faeffc28f1d53ae394ddc1c71837f00fcc17;p=dpdk.git net/bnxt: initialize table scope parameter Initialize table scope resource manager parameter. Clear out rm_is_allocated parms before calling as base_index was added and used incorrectly in this instance. Signed-off-by: Farah Smith Signed-off-by: Somnath Kotur Reviewed-by: Kishore Padmanabha Reviewed-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/tf_core/tf_em_common.c b/drivers/net/bnxt/tf_core/tf_em_common.c index 10c3f16368..0037fce42c 100644 --- a/drivers/net/bnxt/tf_core/tf_em_common.c +++ b/drivers/net/bnxt/tf_core/tf_em_common.c @@ -71,7 +71,7 @@ struct tf_tbl_scope_cb * tbl_scope_cb_find(uint32_t tbl_scope_id) { int i; - struct tf_rm_is_allocated_parms parms; + struct tf_rm_is_allocated_parms parms = { 0 }; int allocated; uint32_t rm_tbl_scope_id;