aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_request.c
diff options
context:
space:
mode:
authorPauli Virtanen <[email protected]>2023-07-26 21:25:26 +0000
committerLuiz Augusto von Dentz <[email protected]>2023-08-11 18:52:32 +0000
commit69997d50ec574be816b4ee8f9cee52ebbd53f8bd (patch)
tree5f698d3a2fde6f2eb491bb77d8f3986ee3bfad06 /net/bluetooth/hci_request.c
parentBluetooth: Remove unused declaration amp_read_loc_info() (diff)
downloadkernel-69997d50ec574be816b4ee8f9cee52ebbd53f8bd.tar.gz
kernel-69997d50ec574be816b4ee8f9cee52ebbd53f8bd.zip
Bluetooth: ISO: handle bound CIS cleanup via hci_conn
Calling hci_conn_del in __iso_sock_close is invalid. It needs hdev->lock, but it cannot be acquired there due to lock ordering. Fix this by doing cleanup via hci_conn_drop. Return hci_conn with refcount 1 from hci_bind_cis and hci_connect_cis, so that the iso_conn always holds one reference. This also fixes refcounting when error handling. Since hci_conn_abort shall handle termination of connections in any state properly, we can handle BT_CONNECT socket state in the same way as BT_CONNECTED. Signed-off-by: Pauli Virtanen <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
Diffstat (limited to 'net/bluetooth/hci_request.c')
0 files changed, 0 insertions, 0 deletions