From 6f744ddef543ef1dca7a65866c666e97e1f8f294 Mon Sep 17 00:00:00 2001 From: Kishore Padmanabha Date: Tue, 22 Sep 2020 12:36:32 +0530 Subject: [PATCH] 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 --- drivers/net/bnxt/tf_ulp/bnxt_ulp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.20.1