Commit 87883929 authored by Saeed Mahameed's avatar Saeed Mahameed
Browse files

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);