From: Satheesh Paul <psathe...@marvell.com>

Fix uninitialized pointer read reported in coverity scan.

Coverity issue: 375811
Fixes: 84d2ea9d4fb3 ("common/cnxk: support custom pre L2 header parsing as raw")
Cc: sta...@dpdk.org

Signed-off-by: Satheesh Paul <psathe...@marvell.com>
Reviewed-by: Kiran Kumar K <kirankum...@marvell.com>
---
 drivers/common/cnxk/roc_npc_parse.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/common/cnxk/roc_npc_parse.c 
b/drivers/common/cnxk/roc_npc_parse.c
index f746b9cb6d..571fdb36fc 100644
--- a/drivers/common/cnxk/roc_npc_parse.c
+++ b/drivers/common/cnxk/roc_npc_parse.c
@@ -97,6 +97,7 @@ npc_parse_pre_l2(struct npc_parse_state *pst)
                (const struct roc_npc_flow_item_raw *)pst->pattern->mask, &info,
                raw_spec_buf, raw_mask_buf);
 
+       info.def_mask = NULL;
        info.hw_mask = &hw_mask;
        npc_get_hw_supp_mask(pst, &info, lid, lt);
 
-- 
2.39.2

Reply via email to