diff options
| author | Rupesh Majhi <zoone.rupert@gmail.com> | 2026-11-08 19:26:51 +0200 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-11-13 12:08:12 -0800 |
| commit | b5c5b67e02406fb48acf57cf2c30a570230fd6aa (patch) | |
| tree | 8f287da9b2afe9677bc63d74c797fbf558367c61 /scripts/Makefile.thinlto | |
| parent | 68af85b730f9a9e5f66c96ba861a66da08cfa5a9 (diff) | |
| download | lwn-b5c5b67e02406fb48acf57cf2c30a570230fd6aa.tar.gz lwn-b5c5b67e02406fb48acf57cf2c30a570230fd6aa.zip | |
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: 8c78f0dee437 ("hwmon: Add AHT10 Temperature and Humidity Sensor Driver")
Cc: stable@vger.kernel.org
Signed-off-by: Rupesh Majhi <zoone.rupert@gmail.com>
Link: https://patch.msgid.link/20261108172651.220121-1-zoone.rupert@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
