common/cnxk: fix uninitialized pointer read
authorGowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
Sat, 12 Feb 2022 12:38:20 +0000 (18:08 +0530)
committerJerin Jacob <jerinj@marvell.com>
Fri, 18 Feb 2022 04:20:47 +0000 (05:20 +0100)
commit244a996f0149c2c3ae82e0bc6cc2abc4eb87656b
tree2ed1ead2087a05df6761613115741b0f929f1b2d
parent2447b0b6695d4cecb8606d4c069564f35c31b1d4
common/cnxk: fix uninitialized pointer read

Fix uninitialized pointer read reported in coverity scan.

Coverity issue: 370214, 370217, 370219, 370220, 370221
Coverity issue: 370223, 370224, 370225, 372065
Fixes: c34ea71b878d ("common/cnxk: add NPC parsing API")
Cc: stable@dpdk.org
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/cnxk/roc_npc_parse.c