diff options
author | 2024-05-28 15:52:55 +0300 | |
---|---|---|
committer | 2024-06-21 10:19:36 -0300 | |
commit | 81497c148b7a2e4a4fbda93aee585439f7323e2e (patch) | |
tree | 9aada57bb5ce2490b4617bcdc24032216b2c48ef /drivers | |
parent | RDMA/mlx5: Ensure created mkeys always have a populated rb_key (diff) | |
download | linux-81497c148b7a2e4a4fbda93aee585439f7323e2e.tar.gz linux-81497c148b7a2e4a4fbda93aee585439f7323e2e.tar.bz2 linux-81497c148b7a2e4a4fbda93aee585439f7323e2e.zip |
RDMA/mlx5: Fix unwind flow as part of mlx5_ib_stage_init_init
Fix unwind flow as part of mlx5_ib_stage_init_init to use the correct
goto upon an error.
Fixes: 758ce14aee82 ("RDMA/mlx5: Implement MACsec gid addition and deletion")
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Reviewed-by: Patrisious Haddad <phaddad@nvidia.com>
Link: https://lore.kernel.org/r/aa40615116eda14ec9eca21d52017d632ea89188.1716900410.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/hw/mlx5/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 2366c46eebc8..43660c831b22 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -3759,10 +3759,10 @@ static int mlx5_ib_stage_init_init(struct mlx5_ib_dev *dev) spin_lock_init(&dev->dm.lock); dev->dm.dev = mdev; return 0; -err: - mlx5r_macsec_dealloc_gids(dev); err_mp: mlx5_ib_cleanup_multiport_master(dev); +err: + mlx5r_macsec_dealloc_gids(dev); return err; } |