Skip to content

Commit 81497c1

Browse files
Yishai Hadasjgunthorpe
authored andcommitted
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: 758ce14 ("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>
1 parent 2e4c02f commit 81497c1

File tree

1 file changed

+2
-2
lines changed
  • drivers/infiniband/hw/mlx5

1 file changed

+2
-2
lines changed

drivers/infiniband/hw/mlx5/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3759,10 +3759,10 @@ static int mlx5_ib_stage_init_init(struct mlx5_ib_dev *dev)
37593759
spin_lock_init(&dev->dm.lock);
37603760
dev->dm.dev = mdev;
37613761
return 0;
3762-
err:
3763-
mlx5r_macsec_dealloc_gids(dev);
37643762
err_mp:
37653763
mlx5_ib_cleanup_multiport_master(dev);
3764+
err:
3765+
mlx5r_macsec_dealloc_gids(dev);
37663766
return err;
37673767
}
37683768

0 commit comments

Comments
 (0)