diff options
author | Saeed Mahameed <saeedm@mellanox.com> | 2019-05-16 20:11:11 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-05-29 03:25:41 +0200 |
commit | 8788392995e7f1ea87d4efa03c14d872b05f9f25 (patch) | |
tree | 7f754228b5a09c01174c6e928c0006275f578fdb | |
parent | Documentation: net-sysfs: Remove duplicate PHY device documentation (diff) | |
download | linux-8788392995e7f1ea87d4efa03c14d872b05f9f25.tar.xz linux-8788392995e7f1ea87d4efa03c14d872b05f9f25.zip |
net/mlx5: Fix error handling in mlx5_load()
In case mlx5_core_set_hca_defaults fails, it should jump to
mlx5_cleanup_fs, fix that.
Fixes: c85023e153e3 ("IB/mlx5: Add raw ethernet local loopback support")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Huy Nguyen <huyn@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c index 61fa1d162d28..23d53163ce15 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c @@ -1067,7 +1067,7 @@ static int mlx5_load(struct mlx5_core_dev *dev) err = mlx5_core_set_hca_defaults(dev); if (err) { mlx5_core_err(dev, "Failed to set hca defaults\n"); - goto err_fs; + goto err_sriov; } err = mlx5_sriov_attach(dev); |