Re: [PATCH] nvme-hwmon: clamp threshold input before Kelvin conversion
From: Keith Busch
Date: Thu Dec 03 2026 - 16:23:01 EST
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@xxxxxxxxxx>