summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorRong Zhang <i@rong.moe>2026-09-21 03:40:15 +0800
committerLee Jones <lee@kernel.org>2026-09-24 13:17:32 +0100
commit6887f40dadb5a263de1d9e4b5517400c08089d35 (patch)
tree91b182496a726dcc3c6a18b356c2ae8cec75af72 /tools/perf/scripts/python/stackcollapse.py
parentd4948551280b1d52c1896b7c80d5383b7d8ad7c5 (diff)
downloadlinux-next-6887f40dadb5a263de1d9e4b5517400c08089d35.tar.gz
linux-next-6887f40dadb5a263de1d9e4b5517400c08089d35.zip
leds: class: Always protect brightness_show() with led_access
The led_classdev_register_ext() protects transient states when registering with the led_access mutex and relies on all sensitive sysfs attribute callbacks holding the mutex to prevent exposing transient states. The Fixes: commit broke this as it accessed trigger_lock without holding led_access. Fix it by protecting brightness_show() with led_access in all code paths. Fixes: b819dc7d8fb2 ("leds: core: Report ENODATA for brightness of hardware controlled LED") Signed-off-by: Rong Zhang <i@rong.moe> Link: https://patch.msgid.link/20260921-leds-trigger-hw-changed-v7-1-fe3cdb6dec51@rong.moe Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions