Bluetooth: ISO: consider right CIS when removing CIG at cleanup
authorPauli Virtanen <pav@iki.fi>
Sun, 21 May 2023 15:48:28 +0000 (15:48 +0000)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 6 Jun 2023 00:13:14 +0000 (17:13 -0700)
commit31c5f9164949347c9cb34f041a7e04fdc08b1b85
tree28b1b938fe98966df7f03ddc009b91285c7c7807
parentfb928170e32ebf4f983db7ea64901b1ea19ceadf
Bluetooth: ISO: consider right CIS when removing CIG at cleanup

When looking for CIS blocking CIG removal, consider only the CIS with
the right CIG ID. Don't try to remove CIG with unset CIG ID.

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