summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorVicki Pfau <vi@endrift.com>2026-11-10 22:49:54 -0800
committerJiri Kosina <jkosina@suse.com>2026-11-19 21:28:59 +0100
commit02f677683b46e65979dc4267b346029f953f6162 (patch)
treeef3bfa2ce0f4c2ffe40a9c637077f0ff30d9ec3b /tools/perf/scripts/python/libxed.py
parent348597b22005a8f20d267cdcc503a41dcc658acf (diff)
HID: nintendo-switch2-usb: Fix potential deadlock on teardown
As reported by Sashiko, there is a narrow window in which cancel_work_sync on the message in work can block due to the work waiting on the mutex that the canceling thread holds. By moving the pointer clearing and unlocking the mutex before calling cfg->shutdown we can avoid this deadlock. Reported-by: Sashiko <sashiko-bot@kernel.org> Link: https://sashiko.dev/#/patchset/20261006061619.2005967-1-vi%40endrift.com?part=1 Fixes: 9417132df63e ("HID: nintendo: Add preliminary Switch 2 controller driver") Signed-off-by: Vicki Pfau <vi@endrift.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions