From 385edd89297818989f171e509865254d35bc92fd Mon Sep 17 00:00:00 2001 From: Howard Pritchard Date: Thu, 3 Oct 2024 18:33:03 -0400 Subject: [PATCH] some more PR feedback Signed-off-by: Howard Pritchard --- ompi/mca/mtl/ofi/mtl_ofi.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ompi/mca/mtl/ofi/mtl_ofi.h b/ompi/mca/mtl/ofi/mtl_ofi.h index 31b9d5230c3..e290d8ceceb 100644 --- a/ompi/mca/mtl/ofi/mtl_ofi.h +++ b/ompi/mca/mtl/ofi/mtl_ofi.h @@ -804,6 +804,9 @@ ompi_mtl_ofi_isend_generic(struct mca_mtl_base_module_t *mtl, ompi_mtl_ofi_set_mr_null(ofi_req); ompi_ret = ompi_comm_get_remote_cid(comm, dest, &c_index_for_tag); + if (OPAL_UNLIKELY(OMPI_SUCCESS != ompi_ret)) { + return rc; + } if (ompi_mtl_ofi.total_ctxts_used > 0) { ctxt_id = comm->c_contextid.cid_sub.u64 % ompi_mtl_ofi.total_ctxts_used;