Bluetooth: hci_event: Fix handling of HCI_EV_IO_CAPA_REQUEST
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 22 Jan 2024 14:02:47 +0000 (09:02 -0500)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 28 Feb 2024 14:43:49 +0000 (09:43 -0500)
commit7e74aa53a68bf60f6019bd5d9a9a1406ec4d4865
treebfdc9c4c4e4558226b744e23674f19275f50f2ad
parent0bd1fb586235224048c726922db048d1bce6354a
Bluetooth: hci_event: Fix handling of HCI_EV_IO_CAPA_REQUEST

If we received HCI_EV_IO_CAPA_REQUEST while
HCI_OP_READ_REMOTE_EXT_FEATURES is yet to be responded assume the remote
does support SSP since otherwise this event shouldn't be generated.

Link: https://lore.kernel.org/linux-bluetooth/CABBYNZ+9UdG1cMZVmdtN3U2aS16AKMCyTARZZyFX7xTEDWcMOw@mail.gmail.com/T/#t
Fixes: c7f59461f5a7 ("Bluetooth: Fix a refcnt underflow problem for hci_conn")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_event.c