]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: Fix a NULL vs IS_ERR() check
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 3 Nov 2023 06:36:20 +0000 (09:36 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 5 Dec 2023 06:11:54 +0000 (22:11 -0800)
commitca4ef28d0ad831d2521fa2b16952f37fd9324ca3
treeafd5f43c4518358541482da70f58584cb2baac4c
parent7aaf975238c47b710fcc4eca0da1e7902a53abe2
net/mlx5: Fix a NULL vs IS_ERR() check

The mlx5_esw_offloads_devlink_port() function returns error pointers, not
NULL.

Fixes: 7bef147a6ab6 ("net/mlx5: Don't skip vport check")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c