Skip to content

Commit

Permalink
platform/x86: dell-smbios-base: Fix error return code in dell_smbios_…
Browse files Browse the repository at this point in the history
…init

[ Upstream commit 2425ccd ]

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

Fixes: 41e36f2 ("platform/x86: dell-smbios: Link all dell-smbios-* modules together")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Reviewed-by: Mario Limonciello <mario.limonciello@dell.com>
Link: https://lore.kernel.org/r/20201125065032.154125-1-miaoqinglang@huawei.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Qinglang Miao authored and gregkh committed Dec 30, 2020
1 parent 3d64e8c commit f4935d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/platform/x86/dell-smbios-base.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit f4935d3

Please sign in to comment.