dell: disable plugin if libsmbios fails

This commit is contained in:
Mario Limonciello 2017-11-14 12:19:10 -06:00
parent 20e856ccbe
commit 2e52dc2242

View File

@ -1078,6 +1078,14 @@ fu_plugin_startup (FuPlugin *plugin, GError **error)
return FALSE;
}
if (data->smi_obj->smi == NULL) {
g_set_error (error,
FWUPD_ERROR,
FWUPD_ERROR_INTERNAL,
"failed to initialize libsmbios library");
return FALSE;
}
/* If ESRT is not turned on, fwupd will have already created an
* unlock device (if compiled with support).
*