We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 124d6f6 commit b079a5eCopy full SHA for b079a5e
ompi/mca/mtl/ofi/mtl_ofi.c
@@ -110,6 +110,15 @@ ompi_mtl_ofi_add_procs(struct mca_mtl_base_module_t *mtl,
110
*/
111
for (i = 0; i < nprocs; ++i) {
112
endpoint = OBJ_NEW(mca_mtl_ofi_endpoint_t);
113
+ if (NULL == endpoint) {
114
+ opal_output_verbose(1, ompi_mtl_base_framework.framework_output,
115
+ "%s:%d: mtl/ofi: could not allocate endpoint"
116
+ " structure\n",
117
+ __FILE__, __LINE__);
118
+ ret = OMPI_ERROR;
119
+ goto bail;
120
+ }
121
+
122
endpoint->mtl_ofi_module = &ompi_mtl_ofi;
123
endpoint->peer_fiaddr = fi_addrs[i];
124
0 commit comments