Subject: Re: [PATCH] net/mlx4: Check retval of mlx4_bitmap_init

From: Jakub Kicinski <[email-masked]>
Date: Tue, 15 Nov 2022 20:32:05 -0800

On Tue, 15 Nov 2022 12:53:56 +0300 Peter Kosyh wrote:
> If mlx4_bitmap_init fails, mlx4_bitmap_alloc_range will dereference
> the NULL pointer (bitmap->table).
> 
> Make sure, that mlx4_bitmap_alloc_range called in no error case.
> 
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
> 
> Signed-off-by: Peter Kosyh <[email-masked]>

Please repost with an appropriate Fixes: tag and [PATCH net] in the
subject. Please keep Tariq's review tag.