On Sun, Apr 24, 2022 at 9:47 PM Gowrishankar Muthukrishnan
<gmuthukri...@marvell.com> wrote:
>
> Fix size of not portable issue reported in coverity scan.
>
> Coverity issue: 376538
> Fixes: 7e9a94909ee ("common/cnxk: realloc inline device XAQ AURA")
>
> Signed-off-by: Gowrishankar Muthukrishnan <gmuthukri...@marvell.com>

Acked-by: Jerin Jacob <jer...@marvell.com>
Applied to dpdk-next-net-mrvl/for-next-net. Thanks


> ---
>  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 5a032aab52..8ef2bc85a3 100644
> --- a/drivers/common/cnxk/roc_nix_inl_dev.c
> +++ b/drivers/common/cnxk/roc_nix_inl_dev.c
> @@ -606,7 +606,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
> --
> 2.25.1
>

Reply via email to