Re: linux-next: build warning after merge of the mlx5-next tree

From: Leon Romanovsky
Date: Tue Nov 05 2019 - 09:38:36 EST


On Tue, Nov 05, 2019 at 01:07:28PM +1100, Stephen Rothwell wrote:
> Hi all,
>
> After merging the mlx5-next tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
>
> drivers/net/ethernet/mellanox/mlx5/core/eswitch.c: In function 'esw_vport_ingress_config':
> drivers/net/ethernet/mellanox/mlx5/core/eswitch.c:1356:2: warning: 'spec' may be used uninitialized in this function [-Wmaybe-uninitialized]
> 1356 | kvfree(spec);
> | ^~~~~~~~~~~~
>
> Introduced by commit
>
> 10652f39943e ("net/mlx5: Refactor ingress acl configuration")

Thanks Stephen.

>
> --
> Cheers,
> Stephen Rothwell