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

Leon Romanovsky leon at kernel.org
Thu Nov 17 13:39:19 MSK 2022


On Wed, Nov 16, 2022 at 01:08:06PM +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.
> 
> Fixes: d57febe1a478 ("net/mlx4: Add A0 hybrid steering")
> 
> Signed-off-by: Peter Kosyh <pkosyh at yandex.ru>
> 
> Reviewed-by: Tariq Toukan <tariqt at nvidia.com>

Please don't add blank lines between tags and your Signed-off-by should
be last.

Thanks



More information about the lvc-project mailing list