diff options
| author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2026-10-14 19:34:09 +0200 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-11-02 07:00:04 -0800 |
| commit | bed5f0c075eb99442fca6a61c009a32752eceda2 (patch) | |
| tree | 804b57ebc244844901ed05bb48396bf30d3ba2e0 /scripts/const_structs.checkpatch | |
| parent | 22aecf164e1c0c849808c342c65322d14f45176f (diff) | |
hwmon: chipcap2: serialize access to the alarm indicators
low_alarm and high_alarm are accessed from the threaded interrupt
handlers and from sysfs without any locking, which can lead to lost
alarms.
Add a mutex to serialize the access to the alarm indicators and to
process_irqs, which the handlers use to decide whether an interrupt
belongs to an ongoing operation.
Fixes: 3af350929e75 ("hwmon: Add support for Amphenol ChipCap 2")
Cc: stable@vger.kernel.org
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20261014-chipcap2_locks-v3-10-27ebfc2c5b9e@gmail.com
[groeck: Dropped obsolete 'Assisted-by: tag]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
