linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] platform/x86: dell-smbios-base: Fix error return code in dell_smbios_init
@ 2020-11-25  6:50 Qinglang Miao
  2020-11-25 17:05 ` Hans de Goede
  2020-12-02 12:11 ` Hans de Goede
  0 siblings, 2 replies; 4+ messages in thread
From: Qinglang Miao @ 2020-11-25  6:50 UTC (permalink / raw)
  To: Hans de Goede, Mark Gross
  Cc: platform-driver-x86, linux-kernel, Qinglang Miao

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>
---
 drivers/platform/x86/dell-smbios-base.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/platform/x86/dell-smbios-base.c b/drivers/platform/x86/dell-smbios-base.c
index 2e2cd5659..3a1dbf199 100644
--- a/drivers/platform/x86/dell-smbios-base.c
+++ b/drivers/platform/x86/dell-smbios-base.c
@@ -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;
 	}
 
-- 
2.23.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-02 12:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-25  6:50 [PATCH] platform/x86: dell-smbios-base: Fix error return code in dell_smbios_init Qinglang Miao
2020-11-25 17:05 ` Hans de Goede
2020-11-30 21:50   ` Limonciello, Mario
2020-12-02 12:11 ` Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).