OpenCloudOS-Kernel/include/net/bluetooth
Soenke Huster d5ebaa7c5f Bluetooth: hci_event: Ignore multiple conn complete events
When one of the three connection complete events is received multiple
times for the same handle, the device is registered multiple times which
leads to memory corruptions. Therefore, consequent events for a single
connection are ignored.

The conn->state can hold different values, therefore HCI_CONN_HANDLE_UNSET
is introduced to identify new connections. To make sure the events do not
contain this or another invalid handle HCI_CONN_HANDLE_MAX and checks
are introduced.

Buglink: https://bugzilla.kernel.org/show_bug.cgi?id=215497
Signed-off-by: Soenke Huster <soenke.huster@eknoes.de>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2022-01-24 18:38:14 -08:00
..
bluetooth.h Bluetooth: hci_sync: Add support for waiting specific LE subevents 2021-12-22 23:01:35 +01:00
hci.h Bluetooth: hci_event: Rework hci_inquiry_result_with_rssi_evt 2022-01-06 14:57:09 +01:00
hci_core.h Bluetooth: hci_event: Ignore multiple conn complete events 2022-01-24 18:38:14 -08:00
hci_mon.h Bluetooth: monitor: Add support for ISO packets 2020-01-15 22:28:51 +01:00
hci_sock.h Bluetooth: Use only 8 bits for the HCI CMSG state flags 2020-06-12 15:10:46 +02:00
hci_sync.h Bluetooth: hci_sync: Add hci_le_create_conn_sync 2021-12-22 23:01:35 +01:00
l2cap.h Bluetooth: L2CAP: Fix not checking for maximum number of DCID 2021-03-15 21:08:33 +01:00
mgmt.h Bluetooth: mgmt: Add MGMT Adv Monitor Device Found/Lost events 2022-01-20 13:10:28 -08:00
rfcomm.h Bluetooth: Replace zero-length array with flexible-array member 2020-02-28 08:30:02 +01:00
sco.h Bluetooth: Add support for BT_PKT_STATUS CMSG data for SCO connections 2020-06-12 15:08:49 +02:00