Skip to content

Commit ab4875d

Browse files
committed
set ep to NULL to avoid double close
Per suggestion of @awlauria Signed-off-by: Harumi Kuno <[email protected]>
1 parent 1bc3dab commit ab4875d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

opal/mca/btl/ofi/btl_ofi_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ static int mca_btl_ofi_init_device(struct fi_info *info)
584584
/* close basic ep before closing av */
585585
if (NULL != ep && !module->is_scalable_ep) {
586586
fi_close(&ep->fid);
587+
ep = NULL;
587588
}
588589

589590
/* if the contexts have not been initiated, num_contexts should

0 commit comments

Comments
 (0)