Skip to content

Commit 658f721

Browse files
authored
Merge pull request #11200 from drwootton/coll_adapt_missing_lock
Fix missing lock release in ompi_coll_adapt_ibcast_generic: Coverity CID 1498641
2 parents a2d40c3 + 5d771aa commit 658f721

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/mca/coll/adapt/coll_adapt_ibcast.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,11 +558,11 @@ int ompi_coll_adapt_ibcast_generic(void *buff, int count, struct ompi_datatype_t
558558
MCA_PML_CALL(irecv
559559
(recv_buff, recv_count, datatype, context->peer,
560560
con->ibcast_tag - i, comm, &recv_req));
561+
/* Set receive callback */
562+
OPAL_THREAD_UNLOCK(mutex);
561563
if (MPI_SUCCESS != err) {
562564
return err;
563565
}
564-
/* Set receive callback */
565-
OPAL_THREAD_UNLOCK(mutex);
566566
ompi_request_set_callback(recv_req, recv_cb, context);
567567
OPAL_THREAD_LOCK(mutex);
568568
}

0 commit comments

Comments
 (0)