]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix actions_match_supported() return
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 20 Mar 2020 13:23:05 +0000 (16:23 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 26 Mar 2020 06:18:49 +0000 (23:18 -0700)
commit86a0b1e44d0fff31738571dff4072b30c6100386
tree35962fce94d425bcd295ad054df65baeb86ade18
parent7e1d9c389dfe36602975eb537d537e95f38871fc
net/mlx5e: Fix actions_match_supported() return

The actions_match_supported() function returns a bool, true for success
and false for failure.  This error path is returning a negative which
is cast to true but it should return false.

Fixes: 523aa4ec2a2d ("net/mlx5e: CT: Introduce connection tracking")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c