diff options
| author | Sang-Hoon Choi <csh0052@gmail.com> | 2026-10-09 18:16:18 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-10-11 15:50:49 +0200 |
| commit | 47f4e983b5de7616fb11d5f537fc9a605387d136 (patch) | |
| tree | e8fbfb1098dfc8393042a76e283388bf03597c9e /scripts | |
| parent | e3e3a104759392c8641f60b2de1f4231aba99e46 (diff) | |
xhci: dbc: lock the minor IDR on registration failure
dbc_tty_minors is protected by dbc_tty_minors_lock when entries are
allocated and during normal device removal. The registration error path
removes an entry without taking that lock. Different DbC instances have
separate event work items, so this removal can race with an IDR update
for another instance.
Take the same mutex around the error-path removal.
Fixes: e1ec140f273e ("xhci: dbgtty: use IDR to support several dbc instances.")
Reported-by: Changyul Lee <lcy8047@gmail.com>
Assisted-by: LLM
Signed-off-by: Sang-Hoon Choi <csh0052@gmail.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://patch.msgid.link/20261009151624.618967-6-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
