Skip to content

Commit 3676f54

Browse files
authored
Merge pull request #11569 from MamziB/mamzi/req-free
UCC/HCOLL: return req null in request free
2 parents 3d5e1e6 + 364fe25 commit 3676f54

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ompi/mca/coll/hcoll/coll_hcoll_rte.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ request_free(struct ompi_request_t **ompi_req)
331331
return OMPI_ERROR;
332332
}
333333
coll_handle_free(req);
334-
*ompi_req = &ompi_request_empty;
334+
*ompi_req = MPI_REQUEST_NULL;
335335
return OMPI_SUCCESS;
336336
}
337337

ompi/mca/coll/ucc/coll_ucc_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ int mca_coll_ucc_req_free(struct ompi_request_t **ompi_req)
587587
{
588588
opal_free_list_return (&mca_coll_ucc_component.requests,
589589
(opal_free_list_item_t *)(*ompi_req));
590-
*ompi_req = &ompi_request_empty;
590+
*ompi_req = MPI_REQUEST_NULL;
591591
return OMPI_SUCCESS;
592592
}
593593

0 commit comments

Comments
 (0)