diff options
| author | 2026-10-18 05:52:34 +0900 | |
|---|---|---|
| committer | 2026-10-18 09:25:04 -0700 | |
| commit | 0e1d292233c83d41530df6ffa4ec5a382f118b12 (patch) | |
| tree | 533fd37b4a0b6c2b1db09c0ca72c8c4bbb26475e /scripts/Makefile.thinlto | |
| parent | hwmon: (coretemp) Return -ENODATA for invalid temperature readings (diff) | |
hwmon: (sht4x) Reject incomplete heater command transfers
heater_enable_store() treats a zero return from i2c_master_send() as
success. It updates the heater state and returns count, so another
attempt to enable the heater fails with -EBUSY.
i2c-virtio can return zero when the first message fails. Require
SHT4X_CMD_LEN before updating the heater state, as sht4x_probe()
already does for the reset command.
Fixes: 0eed6fc3d2b9 ("hwmon: (sht4x): add heater support")
Cc: stable@vger.kernel.org
Signed-off-by: Baek Kyu, Kim <pocj8ur4in@gmail.com>
Link: https://patch.msgid.link/20261017205234.1084949-1-pocj8ur4in@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
