[PATCH 0/2] hwmon: (peci/cputemp) Fix temp*_crit_hyst and cputemp_is_visible() bounds check
From: Pradhan, Sanman
Date: Sun Mar 22 2026 - 20:24:50 EST
From: Sanman Pradhan <psanman@xxxxxxxxxxx>
Two fixes for the peci cputemp driver:
1. Fix tempN_crit_hyst returning a delta instead of the absolute
temperature required by the hwmon sysfs ABI.
2. Fix an off-by-one in cputemp_is_visible() so an invalid channel
index is correctly rejected before indexing the core bitmap.
Sanman Pradhan (2):
hwmon: (peci/cputemp) Fix crit_hyst returning delta instead of
absolute temperature
hwmon: (peci/cputemp) Fix off-by-one in cputemp_is_visible()
Documentation/hwmon/peci-cputemp.rst | 10 ++++++----
drivers/hwmon/peci/cputemp.c | 4 ++--
2 files changed, 8 insertions(+), 6 deletions(-)
--
2.34.1