From: Christoph Hellwig <hch@lst.de>
To: Andrew Stellman <bugs@stellman-greene.com>
Cc: Guenter Roeck <linux@roeck-us.net>,
Keith Busch <kbusch@kernel.org>, Jens Axboe <axboe@kernel.dk>,
Sagi Grimberg <sagi@grimberg.me>,
Akinobu Mita <akinobu.mita@gmail.com>,
linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] nvme-hwmon: clamp threshold input before Kelvin conversion
Date: Thu, 3 Dec 2026 09:10:29 +0100 [thread overview]
Message-ID: <20261203081029.GB29763@lst.de> (raw)
In-Reply-To: <20261202164956.49925-1-bugs@stellman-greene.com>
On Wed, Dec 02, 2026 at 11:49:56AM -0500, Andrew Stellman wrote:
> From: Andrew Stellman <astellman@stellman-greene.com>
>
> nvme_set_temp_thresh() calls millicelsius_to_kelvin() before clamping
> the value. From reading the code, an input close to LONG_MAX
> overflows in that conversion, so the clamp then programs 0 K instead
> of the maximum.
>
> Clamp the millidegree input before converting it.
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
next prev parent reply other threads:[~2026-12-03 8:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 16:49 Andrew Stellman
2026-12-03 8:10 ` Christoph Hellwig [this message]
2026-12-03 21:22 ` Keith Busch
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=20261203081029.GB29763@lst.de \
--to=hch@lst.de \
--cc=akinobu.mita@gmail.com \
--cc=axboe@kernel.dk \
--cc=bugs@stellman-greene.com \
--cc=kbusch@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=linux@roeck-us.net \
--cc=sagi@grimberg.me \
/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®