From 1c3cf068a4f3f701bc3bd92cc6d6dcafd3025cc7 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Tue, 24 Feb 2015 13:40:03 -0500 Subject: [PATCH] nbc ireduce_scatter: ensure to check the correct return code This was CID 1196644 and 1196621 --- ompi/mca/coll/libnbc/nbc_ireduce_scatter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ompi/mca/coll/libnbc/nbc_ireduce_scatter.c b/ompi/mca/coll/libnbc/nbc_ireduce_scatter.c index 041dc59576..fe7f280d82 100644 --- a/ompi/mca/coll/libnbc/nbc_ireduce_scatter.c +++ b/ompi/mca/coll/libnbc/nbc_ireduce_scatter.c @@ -180,7 +180,7 @@ int ompi_coll_libnbc_ireduce_scatter_inter(void* sendbuf, void* recvbuf, int *re 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(datatype, &ext); + res = MPI_Type_extent(datatype, &ext); if (MPI_SUCCESS != res) { printf("MPI Error in MPI_Type_extent() (%i)\n", res); return res; } schedule = (NBC_Schedule*)malloc(sizeof(NBC_Schedule));