Bluetooth: ISO: don't try to remove CIG if there are bound CIS left
authorPauli Virtanen <pav@iki.fi>
Thu, 1 Jun 2023 06:34:44 +0000 (09:34 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 6 Jun 2023 00:14:07 +0000 (17:14 -0700)
commit6c242c64a09e78349fb0a5f0a6f8076a3d7c0bb4
tree2646f9db0c50ecb99c7ecf64d45750e186f33c9e
parent02c5ea5246a44d6ffde0fddebfc1d56188052976
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: 26afbd826ee3 ("Bluetooth: Add initial implementation of CIS connections")
Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_conn.c