From: Kishore Padmanabha Date: Tue, 22 Sep 2020 07:06:32 +0000 (+0530) Subject: net/bnxt: fix crash during NAT configuration X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6f744ddef543ef1dca7a65866c666e97e1f8f294;p=dpdk.git net/bnxt: fix crash during NAT configuration Initialize the global parameters structure to avoid segmentation fault in the TRUFLOW global configuration set API. Fixes: 0a58be6f7c1e ("net/bnxt: add access to NAT global register") Cc: stable@dpdk.org Signed-off-by: Kishore Padmanabha Reviewed-by: Mike Baucom Reviewed-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/tf_ulp/bnxt_ulp.c b/drivers/net/bnxt/tf_ulp/bnxt_ulp.c index 762fc0ce50..93a79592d6 100644 --- a/drivers/net/bnxt/tf_ulp/bnxt_ulp.c +++ b/drivers/net/bnxt/tf_ulp/bnxt_ulp.c @@ -594,7 +594,7 @@ bnxt_ulp_global_cfg_update(struct bnxt *bp, { uint32_t global_cfg = 0; int rc; - struct tf_global_cfg_parms parms; + struct tf_global_cfg_parms parms = { 0 }; /* Initialize the params */ parms.dir = dir,