[PATCH] nvme-hwmon: clamp threshold input before Kelvin conversion
Keith Busch
kbusch at kernel.org
Thu Dec 3 13:22:35 PST 2026
On Wed, 2 Dec 2026 11:49:56 -0500, Andrew Stellman wrote:
> 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.
>
> [...]
Thanks, applied to nvme-7.4.
[1/1] nvme-hwmon: clamp threshold input before Kelvin conversion
commit: d647c9807cc0b0d3ae6fc4258ee473bb326603a7
--
Keith Busch <kbusch at kernel.org>
More information about the Linux-nvme
mailing list