Skip to content

Commit 456b73d

Browse files
committed
btl/openib: fix error path in init_one_device()
do not explicitly release ib verbs components since they will be released in the object destructor Thanks Durga for the report
1 parent 4d026e2 commit 456b73d

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

opal/mca/btl/openib/btl_openib_component.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,26 +2229,13 @@ static int init_one_device(opal_list_t *btl_list, struct ibv_device* ib_dev)
22292229
}
22302230

22312231
error:
2232-
#if OPAL_ENABLE_PROGRESS_THREADS
2233-
if (device->ib_channel) {
2234-
ibv_destroy_comp_channel(device->ib_channel);
2235-
}
2236-
#endif
2237-
2238-
if (device->ib_pd) {
2239-
ibv_dealloc_pd(device->ib_pd);
2240-
}
2241-
22422232
if (OPAL_SUCCESS != ret) {
22432233
opal_show_help("help-mpi-btl-openib.txt",
22442234
"error in device init", true,
22452235
opal_process_info.nodename,
22462236
ibv_get_device_name(device->ib_dev));
22472237
}
22482238

2249-
if (device->ib_dev_context) {
2250-
ibv_close_device(device->ib_dev_context);
2251-
}
22522239
if (NULL != allowed_ports) {
22532240
free(allowed_ports);
22542241
}

0 commit comments

Comments
 (0)