summaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2026-04-12 21:47:42 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2026-05-06 22:58:29 +0300
commitb819db93d73f4593636299e229914052b89e3ef2 (patch)
tree0fabf2cbbcbcf88da9db872b7f365e7bc773b8ea /lib/debugobjects.c
parentb89e0100a5f6885f9748bbacc3f4e3bcff654e4c (diff)
downloadlinux-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