net/mlx5: Fix mlx5_cmd_update_root_ft() error flow
authorShay Drory <shayd@nvidia.com>
Sun, 25 Jun 2023 07:43:03 +0000 (10:43 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 16 Aug 2023 20:39:28 +0000 (13:39 -0700)
commit0fd23db0cc74cf6d28d26ce5e7802e982608d830
tree4496bbc931884e5f4c816f81625198891c6437b7
parent34a79876d9f77e971115236bcf7b5d14a8ecf542
net/mlx5: Fix mlx5_cmd_update_root_ft() error flow

The cited patch change mlx5_cmd_update_root_ft() to work with multiple
peer devices. However, it didn't align the error flow as well.
Hence, Fix the error code to work with multiple peer devices.

Fixes: 222dd185833e ("{net/RDMA}/mlx5: introduce lag_for_each_peer")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c