Skip to content

Commit 6c242c6

Browse files
pvVudentz
authored andcommitted
Bluetooth: ISO: don't try to remove CIG if there are bound CIS left
Consider existing BOUND & CONNECT state CIS to block CIG removal. Otherwise, under suitable timing conditions we may attempt to remove CIG while Create CIS is pending, which fails. Fixes: 26afbd8 ("Bluetooth: Add initial implementation of CIS connections") Signed-off-by: Pauli Virtanen <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 02c5ea5 commit 6c242c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/bluetooth/hci_conn.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,8 @@ static void cis_cleanup(struct hci_conn *conn)
972972
/* Check if ISO connection is a CIS and remove CIG if there are
973973
* no other connections using it.
974974
*/
975+
hci_conn_hash_list_state(hdev, find_cis, ISO_LINK, BT_BOUND, &d);
976+
hci_conn_hash_list_state(hdev, find_cis, ISO_LINK, BT_CONNECT, &d);
975977
hci_conn_hash_list_state(hdev, find_cis, ISO_LINK, BT_CONNECTED, &d);
976978
if (d.count)
977979
return;

0 commit comments

Comments
 (0)