Commit be7c17b3 authored by Wesley Bland's avatar Wesley Bland
Browse files

Only process recv requests



Requests that aren't for receive operations don't have anything in them,
so trying to process them only generates valgrind warnings with
potentially unsafe behavior.
Signed-off-by: default avatarHuiwei Lu <huiweilu@mcs.anl.gov>
parent 3b04f6c0
......@@ -228,7 +228,8 @@ int MPIC_Wait(MPID_Request * request_ptr, mpir_errflag_t *errflag)
MPID_Progress_end(&progress_state);
}
MPIR_Process_status(&request_ptr->status, errflag);
if (request_ptr->kind == MPID_REQUEST_RECV)
MPIR_Process_status(&request_ptr->status, errflag);
fn_exit:
MPIU_DBG_MSG_D(PT2PT, TYPICAL, "OUT: errflag = %d", *errflag);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment