Bluetooth: hci_conn: Make unacked packet handling more robust
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 22 Aug 2025 17:40:18 +0000 (13:40 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 22 Aug 2025 17:40:18 +0000 (13:40 -0400)
commit5d7eba62e5eb68347de59b31b347b24f304cf21c
treea3d57d797a0d9dc21ba5afc02d0803a34826bbfe
parent01b9128c5db1b470575d07b05b67ffa3cb02ebf1
Bluetooth: hci_conn: Make unacked packet handling more robust

This attempts to make unacked packet handling more robust by detecting
if there are no connections left then restore all buffers of the
respective pool.

Fixes: 5638d9ea9c01 ("Bluetooth: hci_conn: Fix not restoring ISO buffer count on disconnect")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_conn.c