]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix a NULL vs IS_ERR() check
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 10 Feb 2021 11:06:28 +0000 (14:06 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 11 Feb 2021 04:47:14 +0000 (20:47 -0800)
commit2a94e636462e4c2619d9f18f28334aae6471794a
treedee155c9ea00c1ddf212ba49a00df6c4396552fa
parent7892cc517cf76ca99580b86a3bee524a2dcd6966
net/mlx5: Fix a NULL vs IS_ERR() check

The mlx5_chains_get_table() function doesn't return NULL, it returns
error pointers so we need to fix this condition.

Fixes: ddc52a78699d ("net/mlx5: E-Switch, Indirect table infrastructure")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c