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

[email protected] Thu, 30 Jul 2026 15:28:05 +0000
Newsgroups org.kernel.vger.linux-hwmon
Message-ID <[email protected]>
> If the EC returns non-sensical values the temperature conversions might
> overflow on 32-bit systems.
>=20
> As these values wouldn't make sense, clamp them to 255 degrees celsius.
> The machine would die before reaching that limit anyways.
>=20
> Suggested-by: Guenter Roeck <[email protected]>
> Link: https://lore.kernel.org/lkml/0fbf7f69-bb90-4209-b9d5-258759711496@r=
oeck-us.net/
> Signed-off-by: Thomas Wei=C3=9Fschuh <[email protected]>

Sashiko has reviewed this patch and found no issues. It looks great!

--=20
Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20260730-cros_ec-hw=
[email protected]?part=3D1