mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] hwmon: (peci/cputemp) Fix temp*_crit_hyst  and cputemp_is_visible() bounds check
@ 2026-03-23  0:24 Pradhan, Sanman
  2026-03-23  0:24 ` [PATCH 1/2] hwmon: (peci/cputemp) Fix crit_hyst returning delta instead of absolute temperature Pradhan, Sanman
  2026-03-23  0:24 ` [PATCH 2/2] hwmon: (peci/cputemp) Fix off-by-one in cputemp_is_visible() Pradhan, Sanman
  0 siblings, 2 replies; 5+ messages in thread
From: Pradhan, Sanman @ 2026-03-23  0:24 UTC (permalink / raw)
  To: linux-hwmon; +Cc: linux, iwona.winiarska, corbet, linux-kernel, Sanman Pradhan

From: Sanman Pradhan <psanman@juniper.net>

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


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

end of thread, other threads:[~2026-03-23  1:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-23  0:24 [PATCH 0/2] hwmon: (peci/cputemp) Fix temp*_crit_hyst and cputemp_is_visible() bounds check Pradhan, Sanman
2026-03-23  0:24 ` [PATCH 1/2] hwmon: (peci/cputemp) Fix crit_hyst returning delta instead of absolute temperature Pradhan, Sanman
2026-03-23  1:40   ` Guenter Roeck
2026-03-23  0:24 ` [PATCH 2/2] hwmon: (peci/cputemp) Fix off-by-one in cputemp_is_visible() Pradhan, Sanman
2026-03-23  1:40   ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®