diff options
| author | Sean Young <sean@mess.org> | 2026-08-12 14:03:10 +0100 |
|---|---|---|
| committer | Sean Young <sean@mess.org> | 2026-09-22 14:50:16 +0100 |
| commit | ab9567336171e46ce9e03ee126902b3fd7901baa (patch) | |
| tree | 8b11af674785c331c9eed31ac3f73785f975f7aa /tools/perf/scripts/python/bin | |
| parent | e4b4aa413cc2e48a261c8c513ced964a3390c0cf (diff) | |
media: rc: Add missing locking for keymap
When the rc_map for an rc_dev gets updated, locking is required but is
missing in places. A concurrent scancode lookup and a call to
rc_{register,unregistered}_device() could result in a use-after-free;
this could happen if IR is decoded during those function calls.
Add lockdep assertions where locks are required.
ir_free_table() should only be called for non-TX devices else we will
use a spinlock without iniitializing it.
Fixes: dccc0c3ddf8f ("media: rc: fix race between unregister and urb/irq callbacks")
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/bin')
0 files changed, 0 insertions, 0 deletions
