diff options
| author | Vicki Pfau <vi@endrift.com> | 2026-11-10 22:49:55 -0800 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-11-19 21:29:00 +0100 |
| commit | c97cd6badc96050a7eebb63ecbcd18212f06b52e (patch) | |
| tree | 94db49b1762e37f5924d587a928796e74bda5ee7 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 02f677683b46e65979dc4267b346029f953f6162 (diff) | |
HID: nintendo-switch2-usb: Improve shutdown logic with inbound message work
When detaching the USB interface the driver marks the interface as shutdown
to prevent work that may be executing in parallel from attempting to use
the URBs before freeing the URBs. There is theoretically a very narrow
window in which the work could be scheduled while the shutdown is running
in a separate thread, starting to execute before the shutdown cancels the
work.
By ensuring the scheduling happens within the locked scope and adding an
additional shutdown check, this closes the window entirely.
Reported-by: Noah Weinberger <noahweinberger2003@proton.me>
Link: https://lore.kernel.org/linux-input/a2dc00e7-9cab-4315-87a4-795f256c1e03@endrift.com/T/
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
