From: Akhil Goyal <gakhil@marvell.com>
sa_base may be uninitialized in some remote case.
It is better to initialize it.
Fixes: 4382a7ccf781 ("net/cnxk: support Rx security offload on cn10k")
Signed-off-by: Akhil Goyal <gakhil@marvell.com>
---
drivers/net/cnxk/cn10k_rx.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -909,8 +909,8 @@ cn10k_nix_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t pkts,
struct nix_cqe_hdr_s *cq;
struct rte_mbuf *mbuf;
uint64_t aura_handle;
+ uint64_t sa_base = 0;
uintptr_t cpth = 0;
- uint64_t sa_base;
uint16_t lmt_id;
uint64_t laddr;
@@ -1050,9 +1050,9 @@ cn10k_nix_recv_pkts_vector(void *args, struct rte_mbuf **mbufs, uint16_t pkts,
uint8x16_t f0, f1, f2, f3;
uint16_t lmt_id, d_off;
uint64_t lbase, laddr;
+ uintptr_t sa_base = 0;
uint16_t packets = 0;
uint16_t pkts_left;
- uintptr_t sa_base;
uint32_t head;
uintptr_t cq0;