From 2e52dc2242379f4433ccc41c5ddb37efe0030f89 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Tue, 14 Nov 2017 12:19:10 -0600 Subject: [PATCH] dell: disable plugin if libsmbios fails --- plugins/dell/fu-plugin-dell.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/dell/fu-plugin-dell.c b/plugins/dell/fu-plugin-dell.c index c9b68e4b2..8a4a49502 100644 --- a/plugins/dell/fu-plugin-dell.c +++ b/plugins/dell/fu-plugin-dell.c @@ -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). *