Commit 87883929 authored by Saeed Mahameed's avatar Saeed Mahameed

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: c85023e1 ("IB/mlx5: Add raw ethernet local loopback support")
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
Reviewed-by: default avatarHuy Nguyen <huyn@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent a6cd0d2d
...@@ -1067,7 +1067,7 @@ static int mlx5_load(struct mlx5_core_dev *dev) ...@@ -1067,7 +1067,7 @@ static int mlx5_load(struct mlx5_core_dev *dev)
err = mlx5_core_set_hca_defaults(dev); err = mlx5_core_set_hca_defaults(dev);
if (err) { if (err) {
mlx5_core_err(dev, "Failed to set hca defaults\n"); mlx5_core_err(dev, "Failed to set hca defaults\n");
goto err_fs; goto err_sriov;
} }
err = mlx5_sriov_attach(dev); err = mlx5_sriov_attach(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment