Skip to content

Commit

Permalink
remove extra free 4
Browse files Browse the repository at this point in the history
  • Loading branch information
MamziB committed Feb 4, 2024
1 parent 182f5a0 commit 7ea81c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/tl/mlx5/mcast/tl_mlx5_mcast_team.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7ea81c1

Please sign in to comment.