Commit 2425ccd3 authored by Qinglang Miao's avatar Qinglang Miao Committed by Hans de Goede

platform/x86: dell-smbios-base: Fix error return code in dell_smbios_init

Fix to return the error code -ENODEV when fails to init wmi and
smm.

Fixes: 41e36f2f ("platform/x86: dell-smbios: Link all dell-smbios-* modules together")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarQinglang Miao <miaoqinglang@huawei.com>
Reviewed-by: default avatarMario Limonciello <mario.limonciello@dell.com>
Link: https://lore.kernel.org/r/20201125065032.154125-1-miaoqinglang@huawei.comSigned-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent fe600099
......@@ -594,6 +594,7 @@ static int __init dell_smbios_init(void)
if (wmi && smm) {
pr_err("No SMBIOS backends available (wmi: %d, smm: %d)\n",
wmi, smm);
ret = -ENODEV;
goto fail_create_group;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment