Skip to content

Commit 21dde0b

Browse files
author
rhc54
committed
Merge pull request #762 from nysal/topic/mrecv
Fix an invalid memory access in mrecv & imrecv
2 parents ea6f5b3 + 5a7bd89 commit 21dde0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ompi/mpi/c/imrecv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@ int MPI_Imrecv(void *buf, int count, MPI_Datatype type,
6767
OPAL_CR_ENTER_LIBRARY();
6868

6969
rc = MCA_PML_CALL(imrecv(buf, count, type, message, request));
70-
OMPI_ERRHANDLER_RETURN(rc, (*message)->comm, rc, FUNC_NAME);
70+
OMPI_ERRHANDLER_RETURN(rc, comm, rc, FUNC_NAME);
7171
}

ompi/mpi/c/mrecv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ int MPI_Mrecv(void *buf, int count, MPI_Datatype type,
7575
opal_memchecker_base_mem_undefined(&status->MPI_ERROR, sizeof(int));
7676
);
7777

78-
OMPI_ERRHANDLER_RETURN(rc, (*message)->comm, rc, FUNC_NAME);
78+
OMPI_ERRHANDLER_RETURN(rc, comm, rc, FUNC_NAME);
7979
}

0 commit comments

Comments
 (0)