From: "Pradhan, Sanman" <sanman.pradhan@hpe.com>
To: "linux-hwmon@vger.kernel.org" <linux-hwmon@vger.kernel.org>
Cc: "linux@roeck-us.net" <linux@roeck-us.net>,
"iwona.winiarska@intel.com" <iwona.winiarska@intel.com>,
"corbet@lwn.net" <corbet@lwn.net>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Sanman Pradhan <psanman@juniper.net>
Subject: [PATCH 0/2] hwmon: (peci/cputemp) Fix temp*_crit_hyst and cputemp_is_visible() bounds check
Date: Mon, 23 Mar 2026 00:24:08 +0000 [thread overview]
Message-ID: <20260323002352.93417-1-sanman.pradhan@hpe.com> (raw)
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
next reply other threads:[~2026-03-23 0:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-23 0:24 Pradhan, Sanman [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260323002352.93417-1-sanman.pradhan@hpe.com \
--to=sanman.pradhan@hpe.com \
--cc=corbet@lwn.net \
--cc=iwona.winiarska@intel.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=psanman@juniper.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®