Bluetooth: hci_sync: Cleanup hci_conn if it cannot be aborted
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 22 Apr 2022 19:58:18 +0000 (12:58 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 26 Apr 2022 18:10:51 +0000 (20:10 +0200)
commit9b3628d79b46f06157affc56fdb218fdd4988321
tree1c73ca2c7218cac0ca4585be26d03aeb8a3596c1
parentaef2aa4fa98e18ea5d9345bf777ee698c8598728
Bluetooth: hci_sync: Cleanup hci_conn if it cannot be aborted

This attempts to cleanup the hci_conn if it cannot be aborted as
otherwise it would likely result in having the controller and host
stack out of sync with respect to connection handle.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c
net/bluetooth/hci_event.c
net/bluetooth/hci_sync.c