Ensure that if an error occurs, we actually return that error rather
than an undefined value (which could be 0/OPAL_SUCCESS). This commit was SVN r18452.
Этот коммит содержится в:
родитель
76fc8dd188
Коммит
d12b21e21b
@ -322,19 +322,19 @@ opal_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* initialize the memory manager / tracker */
|
/* initialize the memory manager / tracker */
|
||||||
if (OPAL_SUCCESS != opal_mem_hooks_init()) {
|
if (OPAL_SUCCESS != (ret = opal_mem_hooks_init())) {
|
||||||
error = "opal_mem_hooks_init";
|
error = "opal_mem_hooks_init";
|
||||||
goto return_error;
|
goto return_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* initialize the memory checker, to allow early support for annotation */
|
/* initialize the memory checker, to allow early support for annotation */
|
||||||
if (OPAL_SUCCESS != opal_memchecker_base_open()) {
|
if (OPAL_SUCCESS != (ret = opal_memchecker_base_open())) {
|
||||||
error = "opal_memchecker_base_open";
|
error = "opal_memchecker_base_open";
|
||||||
goto return_error;
|
goto return_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* select the memory checker */
|
/* select the memory checker */
|
||||||
if (OPAL_SUCCESS != opal_memchecker_base_select()) {
|
if (OPAL_SUCCESS != (ret = opal_memchecker_base_select())) {
|
||||||
error = "opal_memchecker_base_select";
|
error = "opal_memchecker_base_select";
|
||||||
goto return_error;
|
goto return_error;
|
||||||
}
|
}
|
||||||
@ -350,8 +350,15 @@ opal_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* setup the carto framework */
|
/* setup the carto framework */
|
||||||
opal_carto_base_open();
|
if (OPAL_SUCCESS != (ret = opal_carto_base_open())) {
|
||||||
opal_carto_base_select();
|
error = "opal_carto_base_open";
|
||||||
|
goto return_error;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (OPAL_SUCCESS != (ret = opal_carto_base_select())) {
|
||||||
|
error = "opal_carto_base_select";
|
||||||
|
goto return_error;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Need to start the event and progress engines if noone else is.
|
* Need to start the event and progress engines if noone else is.
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user