summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorJared Kangas <jkangas@redhat.com>2026-08-20 06:09:21 -0700
committerGuenter Roeck <linux@roeck-us.net>2026-09-07 07:22:19 -0700
commit8afc94bfb0ffdfc4a168081785820aa4818d1d23 (patch)
tree3fe6d7fc3e8faa6a7507b92dca801e32d5aaf256 /scripts/basic
parent354ccc99b2dc8ba0cf6d4de34e520bcf6ecca5c2 (diff)
downloadlinux-8afc94bfb0ffdfc4a168081785820aa4818d1d23.tar.gz
linux-8afc94bfb0ffdfc4a168081785820aa4818d1d23.zip
hwmon: (ina2xx) Acquire hwmon_lock in shunt_resistor_show()
shunt_resistor_store() currently acquires hwmon_lock to set data->rshunt, but the corresponding access in shunt_resistor_show() is unprotected. Acquire the lock in shunt_resistor_show() as well to ensure proper synchronization. Fixes: 3ad867001c91 ("hwmon: (ina2xx) fix sysfs shunt resistor read access") Reported-by: Sashiko <sashiko-bot@kernel.org> Closes: https://lore.kernel.org/all/20260729162836.89BDF1F00A3A@smtp.kernel.org/ Signed-off-by: Jared Kangas <jkangas@redhat.com> Link: https://patch.msgid.link/20260820-upstream-ina2xx-in0-curr1-alarms-v2-1-fdce35abc41e@redhat.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions