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
Этот коммит содержится в:
родитель
4d026e223c
Коммит
456b73da69
@ -2229,16 +2229,6 @@ static int init_one_device(opal_list_t *btl_list, struct ibv_device* ib_dev)
|
||||
}
|
||||
|
||||
error:
|
||||
#if OPAL_ENABLE_PROGRESS_THREADS
|
||||
if (device->ib_channel) {
|
||||
ibv_destroy_comp_channel(device->ib_channel);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (device->ib_pd) {
|
||||
ibv_dealloc_pd(device->ib_pd);
|
||||
}
|
||||
|
||||
if (OPAL_SUCCESS != ret) {
|
||||
opal_show_help("help-mpi-btl-openib.txt",
|
||||
"error in device init", true,
|
||||
@ -2246,9 +2236,6 @@ error:
|
||||
ibv_get_device_name(device->ib_dev));
|
||||
}
|
||||
|
||||
if (device->ib_dev_context) {
|
||||
ibv_close_device(device->ib_dev_context);
|
||||
}
|
||||
if (NULL != allowed_ports) {
|
||||
free(allowed_ports);
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user