]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86: dell-wmi-sysman: Make sysman_init() return -ENODEV of the interfaces...
authorHans de Goede <hdegoede@redhat.com>
Sun, 21 Mar 2021 11:59:00 +0000 (12:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Mar 2021 12:30:25 +0000 (14:30 +0200)
commitd6e159f03258a97ad661697b837745bada7db1fa
treeb45a72a3e314493b6e9f6a704aad67cb0c79d577
parent4940c55c47f0ae3c508b96181da2606137488dc2
platform/x86: dell-wmi-sysman: Make sysman_init() return -ENODEV of the interfaces are not found

[ Upstream commit 32418dd58c957f8fef25b97450d00275967604f1 ]

When either the attributes or the password interface is not found, then
unregister the 2 wmi drivers again and return -ENODEV from sysman_init().

Fixes: e8a60aa7404b ("platform/x86: Introduce support for Systems Management Driver over WMI for Dell Systems")
Cc: Divya Bharathi <Divya_Bharathi@dell.com>
Cc: Mario Limonciello <mario.limonciello@dell.com>
Reported-by: Alexander Naumann <alexandernaumann@gmx.de>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210321115901.35072-7-hdegoede@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/dell-wmi-sysman/sysman.c