Skip to content

Commit 15d14a0

Browse files
committed
SQUASHME: fix return value in osc/rdma
Signed-off-by: Joseph Schuchart <joseph.schuchart@stonybrook.edu>
1 parent bb0595f commit 15d14a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ompi/mca/osc/rdma/osc_rdma_component.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,6 +1618,7 @@ int ompi_osc_rdma_shared_query(
16181618
struct ompi_win_t *win, int rank, size_t *size,
16191619
ptrdiff_t *disp_unit, void *baseptr)
16201620
{
1621+
int rc = OMPI_ERR_NOT_SUPPORTED;
16211622
ompi_osc_rdma_peer_t *peer;
16221623
int actual_rank = rank;
16231624
ompi_osc_rdma_module_t *module = GET_MODULE(win);
@@ -1656,15 +1657,16 @@ int ompi_osc_rdma_shared_query(
16561657
*disp_unit = module->disp_unit;
16571658
ompi_osc_rdma_peer_basic_t *ex_peer = (ompi_osc_rdma_peer_basic_t *) peer;
16581659
*((void**) baseptr) = (void *) (intptr_t)ex_peer->base;
1660+
rc = OMPI_SUCCESS;
16591661
} else {
16601662
ompi_osc_rdma_peer_extended_t *ex_peer = (ompi_osc_rdma_peer_extended_t *) peer;
16611663
if (ex_peer->super.base != 0) {
16621664
/* we know the base of the peer */
16631665
*((void**) baseptr) = (void *) (intptr_t)ex_peer->super.base;
16641666
*size = ex_peer->size;
16651667
*disp_unit = ex_peer->disp_unit;
1666-
return OMPI_SUCCESS;
1668+
rc = OMPI_SUCCESS;
16671669
}
16681670
}
1669-
return OMPI_ERR_NOT_SUPPORTED;
1671+
return rc;
16701672
}

0 commit comments

Comments
 (0)