[lvc-project] [PATCH] net/mlx4: Check retval of mlx4_bitmap_init

Jakub Kicinski kuba at kernel.org
Wed Nov 16 07:32:05 MSK 2022


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 <pkosyh at yandex.ru>

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



More information about the lvc-project mailing list