diff options
| author | Sean Young <sean@mess.org> | 2026-08-12 15:46:42 +0100 |
|---|---|---|
| committer | Sean Young <sean@mess.org> | 2026-09-22 14:50:16 +0100 |
| commit | c6d68866ad8aa1e957a3e5a6ede971148f1e3d59 (patch) | |
| tree | fb88b9a05276e8dbb00e256cd114edcd7c880ac7 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 61c7ca95d2483c77dfdde1b007cbe846f145dec4 (diff) | |
media: rc: Fix ABBA deadlock by making locks more fine grained
The ir_raw_event_unregister() function takes the ir_raw_handler_lock
first and then the rc_dev->lock. Other functions like change_protocol
do this in the reverse order.
This means that an ir decoder module unload and writing to the protocol
sysfs file can cause a deadlock.
ir_raw_handler_lock protects the client list, amongst other things.
Split this out into a separate lock so we can ensure the locking
order is always the same.
Fixes: 93cffffc18f6 ("[media] media: rc: fix decoder module unloading")
Signed-off-by: Sean Young <sean@mess.org>
Cc: stable@vger.kernel.org
Acked-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
