]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hwmon: (hp-wmi-sensors) Check if WMI event data exists
authorArmin Wolf <W_Armin@gmx.de>
Sun, 1 Sep 2024 03:10:51 +0000 (05:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Sep 2024 09:11:33 +0000 (11:11 +0200)
commit217539e994e53206bbf3fb330261cc78c480d311
treeb194890a37a3d08b72b088ce4406d1a603264159
parented60aab606413d3fd4aeee81f9cd933294740a9e
hwmon: (hp-wmi-sensors) Check if WMI event data exists

[ Upstream commit a54da9df75cd1b4b5028f6c60f9a211532680585 ]

The BIOS can choose to return no event data in response to a
WMI event, so the ACPI object passed to the WMI notify handler
can be NULL.

Check for such a situation and ignore the event in such a case.

Fixes: 23902f98f8d4 ("hwmon: add HP WMI Sensors driver")
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Message-ID: <20240901031055.3030-2-W_Armin@gmx.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/hp-wmi-sensors.c