diff options
| author | Pauli Virtanen <pav@iki.fi> | 2026-04-12 21:47:42 +0300 |
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2026-05-06 22:58:29 +0300 |
| commit | b819db93d73f4593636299e229914052b89e3ef2 (patch) | |
| tree | 0fabf2cbbcbcf88da9db872b7f365e7bc773b8ea /lib/debugobjects.c | |
| parent | b89e0100a5f6885f9748bbacc3f4e3bcff654e4c (diff) | |
| download | linux-b819db93d73f4593636299e229914052b89e3ef2.tar.xz | |
Bluetooth: SCO: fix sleeping under spinlock in sco_conn_ready
sco_conn_ready calls sleeping functions under conn->lock spinlock.
The critical section can be reduced: conn->hcon is modified only with
hdev->lock held. It is guaranteed to be held in sco_conn_ready, so
conn->lock is not needed to guard it.
Move taking conn->lock after lock_sock(parent). This also follows the
lock ordering lock_sock() > conn->lock elsewhere in the file.
Fixes: 27c24fda62b60 ("Bluetooth: switch to lock_sock in SCO")
Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
