Skip to content

Commit a63fdb7

Browse files
committed
Coverity CID 1497862: Fix missing unlock in early return.
Signed-off-by: Austen Lauria <[email protected]> (cherry picked from commit 45cd218)
1 parent ff90eb4 commit a63fdb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

opal/mca/btl/base/btl_base_am_rdma.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,6 +1333,7 @@ int mca_btl_base_am_rdma_init(mca_btl_base_module_t *btl)
13331333
if (NULL != btl->btl_am_data) {
13341334
BTL_VERBOSE(("am_rdma_init: btl %p already initialized", (void *)btl));
13351335
am_rdma_internal_fini(am_module);
1336+
opal_mutex_unlock(&default_component.mutex);
13361337
return OPAL_SUCCESS;
13371338
}
13381339
opal_mutex_unlock(&default_component.mutex);

0 commit comments

Comments
 (0)