Skip to content

Commit 6152e7e

Browse files
btl/ofi check for valid pointer in error handler
Signed-off-by: Matthew Whitlock <mwhitlo@sandia.gov>
1 parent 97ccdd6 commit 6152e7e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

opal/mca/btl/ofi/btl_ofi_context.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,11 @@ int mca_btl_ofi_context_progress(mca_btl_ofi_context_t *context)
397397
mca_btl_ofi_module_t *ofi_btl =
398398
(mca_btl_ofi_module_t*) comp->btl;
399399
if(ofi_btl->ofi_error_cb){
400-
ofi_btl->ofi_error_cb(comp->btl, 0, comp->endpoint->ep_proc,
400+
opal_proc_t *ep_proc = NULL;
401+
if(comp->endpoint){
402+
ep_proc = comp->endpoint->ep_proc;
403+
}
404+
ofi_btl->ofi_error_cb(comp->btl, 0, ep_proc,
401405
"IO error reported by libfabric");
402406
}
403407

0 commit comments

Comments
 (0)