From e4a96623a4beafb2c05791aee16a99bdda63db69 Mon Sep 17 00:00:00 2001 From: Gowrishankar Muthukrishnan Date: Sun, 24 Apr 2022 21:47:46 +0530 Subject: [PATCH] common/cnxk: fix sizeof not portable Fix sizeof not portable issue reported in coverity scan. Coverity issue: 376538 Fixes: 7e9a94909ee ("common/cnxk: realloc inline device XAQ AURA") Cc: stable@dpdk.org Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Jerin Jacob --- drivers/common/cnxk/roc_nix_inl_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_nix_inl_dev.c b/drivers/common/cnxk/roc_nix_inl_dev.c index 51f1f6807b..ef2540dd5a 100644 --- a/drivers/common/cnxk/roc_nix_inl_dev.c +++ b/drivers/common/cnxk/roc_nix_inl_dev.c @@ -605,7 +605,7 @@ roc_nix_inl_dev_xaq_realloc(uint64_t aura_handle) inl_dev->pkt_pools_cnt++; inl_dev->pkt_pools = plt_realloc(inl_dev->pkt_pools, - sizeof(uint64_t *) * inl_dev->pkt_pools_cnt, 0); + sizeof(uint64_t) * inl_dev->pkt_pools_cnt, 0); if (!inl_dev->pkt_pools) inl_dev->pkt_pools_cnt = 0; else