From 7ea81c131b5fcc14c49de0f5546805764e2566b0 Mon Sep 17 00:00:00 2001 From: Mamzi Bayatpour Date: Sun, 4 Feb 2024 15:00:59 -0800 Subject: [PATCH] remove extra free 4 --- src/components/tl/mlx5/mcast/tl_mlx5_mcast_team.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/tl/mlx5/mcast/tl_mlx5_mcast_team.c b/src/components/tl/mlx5/mcast/tl_mlx5_mcast_team.c index 1fa9a9c7b1..81346acf47 100644 --- a/src/components/tl/mlx5/mcast/tl_mlx5_mcast_team.c +++ b/src/components/tl/mlx5/mcast/tl_mlx5_mcast_team.c @@ -321,6 +321,7 @@ ucc_status_t ucc_tl_mlx5_mcast_team_test(ucc_base_team_t *team) return UCC_INPROGRESS; } + comm->mcast_addr = net_addr; tl_team->mcast_state = TL_MLX5_TEAM_STATE_MCAST_GRP_JOIN_POST; return UCC_INPROGRESS; @@ -365,12 +366,11 @@ ucc_status_t ucc_tl_mlx5_mcast_team_test(ucc_base_team_t *team) if (tl_team->mcast_state == TL_MLX5_TEAM_STATE_MCAST_GRP_JOIN_READY) { /* rank 0 bcast the lid/gid to other processes */ - data->status = status; + data->status = UCC_OK; data->dgid = comm->event->param.ud.ah_attr.grh.dgid; data->dlid = comm->event->param.ud.ah_attr.dlid; comm->mcast_lid = data->dlid; comm->mgid = data->dgid; - comm->mcast_addr = net_addr; } else { /* rank 0 bcast the failed status to other processes so others do not hang */ data->status = UCC_ERR_NO_RESOURCE;