Skip to content

Commit b9d8514

Browse files
committed
ompi/pml/ucx: Fix uninitialized UCX request field.
Signed-off-by: Artem Polyakov <[email protected]> (cherry picked from commit 2879759)
1 parent 083a73b commit b9d8514

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ompi/mca/pml/ucx/pml_ucx_request.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ static int mca_pml_ucx_persistent_request_free(ompi_request_t **rptr)
165165
mca_pml_ucx_persistent_request_detach(preq, tmp_req);
166166
ucp_request_free(tmp_req);
167167
}
168-
if (MCA_PML_BASE_SEND_BUFFERED == preq->send.mode) {
168+
if ((preq->flags & MCA_PML_UCX_REQUEST_FLAG_SEND) &&
169+
(MCA_PML_BASE_SEND_BUFFERED == preq->send.mode)) {
169170
OBJ_RELEASE(preq->ompi_datatype);
170171
}
171172
PML_UCX_FREELIST_RETURN(&ompi_pml_ucx.persistent_reqs, &preq->ompi.super);

0 commit comments

Comments
 (0)