1
1

Check return codes when init'ing the paffinity framework to avoid segfaulting

This commit was SVN r21884.
Этот коммит содержится в:
Ralph Castain 2009-08-26 01:58:15 +00:00
родитель 2016a3180b
Коммит 7cc045f9c5

Просмотреть файл

@ -297,8 +297,14 @@ opal_init(void)
}
/* open the processor affinity base */
opal_paffinity_base_open();
opal_paffinity_base_select();
if (OPAL_SUCCESS != (ret = opal_paffinity_base_open())) {
error = "opal_paffinity_base_open";
goto return_error;
}
if (OPAL_SUCCESS != (ret = opal_paffinity_base_select())) {
error = "opal_paffinity_base_select";
goto return_error;
}
/* the memcpy component should be one of the first who get
* loaded in order to make sure we ddo have all the available