Skip to content

Commit b2b3da3

Browse files
committed
Do not access the frag after returning it.
Signed-off-by: George Bosilca <[email protected]>
1 parent 055f413 commit b2b3da3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/mca/pml/ob1/pml_ob1_recvreq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
44
* University Research and Technology
55
* Corporation. All rights reserved.
6-
* Copyright (c) 2004-2016 The University of Tennessee and The University
6+
* Copyright (c) 2004-2017 The University of Tennessee and The University
77
* of Tennessee Research Foundation. All rights
88
* reserved.
99
* Copyright (c) 2004-2008 High Performance Computing Center Stuttgart,
@@ -192,10 +192,10 @@ static void mca_pml_ob1_put_completion (mca_pml_ob1_rdma_frag_t *frag, int64_t r
192192

193193
OPAL_THREAD_ADD32(&recvreq->req_pipeline_depth, -1);
194194

195+
assert ((uint64_t) rdma_size == frag->rdma_length);
195196
MCA_PML_OB1_RDMA_FRAG_RETURN(frag);
196197

197198
if (OPAL_LIKELY(0 < rdma_size)) {
198-
assert ((uint64_t) rdma_size == frag->rdma_length);
199199

200200
/* check completion status */
201201
OPAL_THREAD_ADD_SIZE_T(&recvreq->req_bytes_received, rdma_size);

0 commit comments

Comments
 (0)