Skip to content

Commit d60f0cb

Browse files
committed
btl/vader: report an error when a segment cannot be attached
1 parent 13643f5 commit d60f0cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opal/mca/btl/vader/btl_vader_module.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* Copyright (c) 2010-2014 Los Alamos National Security, LLC. All rights
1616
* reserved.
1717
* Copyright (c) 2014 Intel, Inc. All rights reserved.
18+
* Copyright (c) 2014 Research Organization for Information Science
19+
* and Technology (RIST). All rights reserved.
1820
* $COPYRIGHT$
1921
*
2022
* Additional copyrights may follow
@@ -208,7 +210,7 @@ static int init_vader_endpoint (struct mca_btl_base_endpoint_t *ep, struct opal_
208210

209211
ep->segment_base = opal_shmem_segment_attach (ep->segment_data.other.seg_ds);
210212
if (NULL == ep->segment_base) {
211-
return rc;
213+
return OPAL_ERROR;
212214
}
213215
#if OPAL_BTL_VADER_HAVE_XPMEM
214216
}

0 commit comments

Comments
 (0)