Re: [PATCH v3] hwmon: (cros_ec) Avoid threshold temperature conversion overflows

Guenter Roeck <[email protected]> Thu, 30 Jul 2026 09:30:20 -0700
Newsgroups dev.linux.lists.chrome-platform,org.kernel.vger.linux-hwmon,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Thu, Jul 30, 2026 at 05:12:26PM +0200, Thomas Weißschuh wrote:
> If the EC returns non-sensical values the temperature conversions might
> overflow on 32-bit systems.
> 
> As these values wouldn't make sense, clamp them to 255 degrees celsius.
> The machine would die before reaching that limit anyways.
> 
> Suggested-by: Guenter Roeck <[email protected]>
> Link: https://lore.kernel.org/lkml/[email protected]/
> Signed-off-by: Thomas Weißschuh <[email protected]>

Applied.

Thanks,
Guenter