Bluetooth: hci_conn: Fix not cleaning up on LE Connection failure
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 24 Mar 2023 17:57:55 +0000 (10:57 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 10 Apr 2023 17:21:33 +0000 (10:21 -0700)
commit19cf60bf63cbaf5262eac400c707966e19999b83
tree5cd5329ae73fe13dd068efd9dc2c6dabac907a98
parentb9881d9a761a7e078c394ff8e30e1659d74f898f
Bluetooth: hci_conn: Fix not cleaning up on LE Connection failure

hci_connect_le_scan_cleanup shall always be invoked to cleanup the
states and re-enable passive scanning if necessary, otherwise it may
cause the pending action to stay active causing multiple attempts to
connect.

Fixes: 9b3628d79b46 ("Bluetooth: hci_sync: Cleanup hci_conn if it cannot be aborted")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_conn.c