Files
Rupesh Majhi b5c5b67e02 hwmon: (aht10) Fix update_interval overflow on 64-bit
On 64-bit, update_interval writes are clamped to LONG_MAX ms, but
ms_to_ktime() overflows above 9223372036854 ms and the interval wraps.
LONG_MAX becomes -1 ms, so every read starts a new measurement and
update_interval reads back -1.

Clamp to INT_MAX like sht4x, so the limit is the same on all platforms.

Fixes: 8c78f0dee4 ("hwmon: Add AHT10 Temperature and Humidity Sensor Driver")
Cc: [email protected]
Signed-off-by: Rupesh Majhi <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
2026-11-13 12:08:12 -08:00
..
…
…
…
…