RE: [EXT] Re: [PATCH net] octeontx2-af: Initialize bitmap arrays.

From: Ratheesh Kannoth
Date: Mon Jan 29 2024 - 00:25:05 EST


> From: Simon Horman <horms@xxxxxxxxxx>
> Subject: Re: [EXT] Re: [PATCH net] octeontx2-af: Initialize bitmap arrays.
> > mcam->bmap = kmalloc_array(BITS_TO_LONGS(mcam-
> >bmap_entries),
> > + sizeof(long), GFP_KERNEL | __GFP_ZERO);
> >
> > This is exactly what bitmap_zalloc()->bitmap_alloc() are doing.
>
> Yes, I agree and I should have suggested using
> bitmap_zalloc() and bitmap_free().
>
ACK.