diff options
| author | 2026-08-29 17:19:57 +0300 | |
|---|---|---|
| committer | 2026-10-14 13:24:10 -0400 | |
| commit | 608e0b7a675b2affbbf38167cad0fa63d8e064f7 (patch) | |
| tree | 127d625693d3c6772b1dce211173e5b9a8492e93 /scripts/Makefile.thinlto | |
| parent | Bluetooth: L2CAP: take chan->lock for l2cap_chan_add/ready/del (diff) | |
Bluetooth: L2CAP: add l2cap_chan_close_unlocked() and locking helpers
l2cap_chan_close() requires holding chan->lock and chan->conn->lock if
associated chan->conn exists, to guard eg. conn->chan_l. Taking the
locks with right ordering requires handling a race condition.
Add helper function l2cap_chan_(un)lock_conn that do the locking right.
Add l2cap_chan_close_unlocked() that does not require locks to be held,
as all callsites do this lock -> close -> unlock pattern.
Link: https://syzkaller.appspot.com/bug?extid=0e4ebcc970728e056324
Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
