diff options
| author | James Seo <[email protected]> | 2023-11-22 21:49:19 -0800 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2023-12-11 06:21:01 -0800 |
| commit | c9ba592580947b81f33f514320aeef02ddc001fd (patch) | |
| tree | fda8252579eaf2a104366ba7173ae1c75fea332e /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | f07f9d2467f4a298d24e186ddee6f69724903067 (diff) | |
hwmon: (hp-wmi-sensors) Fix failure to load on EliteDesk 800 G6
The EliteDesk 800 G6 stores a raw WMI string within the ACPI object in its
BIOS corresponding to one instance of HPBIOS_PlatformEvents.Name. This is
evidently a valid way of representing a WMI data item as far as the
Microsoft ACPI-WMI mapper is concerned, but is preventing the driver from
loading.
This seems quite rare, but add support for such strings. Treating this as a
quirk pretty much means adding that support anyway.
Also clean up an oversight in update_numeric_sensor_from_wobj() in which
the result of hp_wmi_strdup() was being used without error checking.
Reported-by: Lukasz Stelmach <[email protected]>
Closes: https://lore.kernel.org/linux-hwmon/[email protected]/
Tested-by: Lukasz Stelmach <[email protected]>
Signed-off-by: James Seo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions