diff options
author | Qinglang Miao <miaoqinglang@huawei.com> | 2020-11-25 14:50:32 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-30 11:25:58 +0100 |
commit | 99d45dac0b6dc80bf901309431d4159d0c2ba10a (patch) | |
tree | 9805761d207bb449d0ad7ce685e3bef0396c50fd /drivers/platform | |
parent | 0b18acf183b8f031e5b7618d8c6f3000d3e3977c (diff) | |
download | linux-stable-99d45dac0b6dc80bf901309431d4159d0c2ba10a.tar.gz linux-stable-99d45dac0b6dc80bf901309431d4159d0c2ba10a.tar.bz2 linux-stable-99d45dac0b6dc80bf901309431d4159d0c2ba10a.zip |
platform/x86: dell-smbios-base: Fix error return code in dell_smbios_init
[ Upstream commit 2425ccd30fd78ce35237350fe8baac31dc18bd45 ]
Fix to return the error code -ENODEV when fails to init wmi and
smm.
Fixes: 41e36f2f85af ("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>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/dell-smbios-base.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/dell-smbios-base.c b/drivers/platform/x86/dell-smbios-base.c index 0537d44d45a6..9e9fc5155789 100644 --- a/drivers/platform/x86/dell-smbios-base.c +++ b/drivers/platform/x86/dell-smbios-base.c @@ -597,6 +597,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; } |