common/cnxk: fix sizeof not portable
Fix sizeof not portable issue reported in coverity scan.
Coverity issue: 376538
Fixes: 7e9a94909e
("common/cnxk: realloc inline device XAQ AURA")
Cc: stable@dpdk.org
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
This commit is contained in:
parent
ea0d681efa
commit
e4a96623a4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user