From e9980654a81564fb8def790522a0235baf7a75d8 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Tue, 24 Feb 2015 13:38:35 -0500 Subject: [PATCH] nbc ireduce_scatter_block: ensure to check the correct return code This was CID 1196643 and 1196615 --- ompi/mca/coll/libnbc/coll_libnbc_ireduce_scatter_block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ompi/mca/coll/libnbc/coll_libnbc_ireduce_scatter_block.c b/ompi/mca/coll/libnbc/coll_libnbc_ireduce_scatter_block.c index ef8a927471..b35b557a70 100644 --- a/ompi/mca/coll/libnbc/coll_libnbc_ireduce_scatter_block.c +++ b/ompi/mca/coll/libnbc/coll_libnbc_ireduce_scatter_block.c @@ -168,7 +168,7 @@ int ompi_coll_libnbc_ireduce_scatter_block_inter(void *sbuf, void *rbuf, int rco if (MPI_SUCCESS != res) { printf("MPI Error in MPI_Comm_rank() (%i)\n", res); return res; } res = MPI_Comm_remote_size(comm, &rsize); if (MPI_SUCCESS != res) { printf("MPI Error in MPI_Comm_remote_size() (%i)\n", res); return res; } - MPI_Type_extent(dtype, &ext); + res = MPI_Type_extent(dtype, &ext); if (MPI_SUCCESS != res) { printf("MPI Error in MPI_Type_extent() (%i)\n", res); return res; } schedule = (NBC_Schedule*)malloc(sizeof(NBC_Schedule));