summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2026-08-21 07:49:15 -0700
committerGuenter Roeck <linux@roeck-us.net>2026-08-23 07:39:34 -0700
commit2c2739b719d32b99f72f60d26addd55258011bb2 (patch)
treeb4ea0c53f4a64d9c2079db7b226d555c8c286359 /scripts/objdiff
parent04526e04a3c05db1f47c0c84d415c2400242dba2 (diff)
downloadlinux-next-2c2739b719d32b99f72f60d26addd55258011bb2.tar.gz
linux-next-2c2739b719d32b99f72f60d26addd55258011bb2.zip
hwmon: (sht4x) Add missing locks
Sashiko reports: Heater sysfs callbacks (heater_enable_store, heater_power_store, and heater_time_store) are exposed to data races without the hwmon lock. If a user-space process reads hwmon data while another process enables the heater, heater_enable_store() executes without holding hwmon_lock(dev). This can interleave I2C commands and mutate shared state (data->heating_complete and data->data_pending) concurrently with sht4x_read_values(), leading to corrupted I2C sequences. Fixes: 53dfa12299c1 ("hwmon: (sht4x) Rely on subsystem locking") Cc: Alessandro Zini <alessandro.zini@siemens.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Link: https://patch.msgid.link/20260821144916.2889031-1-linux@roeck-us.net
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions