Re: [PATCH net v4] octeontx2-af: Initialize maps.
From: Simon Horman
Date: Wed Feb 07 2024 - 16:01:15 EST
On Tue, Feb 06, 2024 at 08:10:00AM +0530, Ratheesh Kannoth wrote:
> kmalloc_array() without __GFP_ZERO flag does not initialize
> memory to zero. This causes issues. Use kcalloc() for maps and
> bitmap_zalloc() for bitmaps.
>
> Fixes: dd7842878633 ("octeontx2-af: Add new devlink param to configure maximum usable NIX block LFs")
> Signed-off-by: Ratheesh Kannoth <rkannoth@xxxxxxxxxxx>
> Reviewed-by: Brett Creeley <bcreeley@xxxxxxx>
> ---
>
> ChangeLogs:
> v3 -> v4: Used kcalloc() for normal maps
> v2 -> v3: Used GFP_ZERO for normal map arrays
> v1 -> v2: Used bitmap_zalloc() API.
> v0 -> v1: Removed devm_kcalloc()._
Thanks for the updates.
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>