linux-xiaomi-chiron/include/net/bluetooth
Itay Iellin 103a2f3255 Bluetooth: Fix the creation of hdev->name
Set a size limit of 8 bytes of the written buffer to "hdev->name"
including the terminating null byte, as the size of "hdev->name" is 8
bytes. If an id value which is greater than 9999 is allocated,
then the "snprintf(hdev->name, sizeof(hdev->name), "hci%d", id)"
function call would lead to a truncation of the id value in decimal
notation.

Set an explicit maximum id parameter in the id allocation function call.
The id allocation function defines the maximum allocated id value as the
maximum id parameter value minus one. Therefore, HCI_MAX_ID is defined
as 10000.

Signed-off-by: Itay Iellin <ieitayie@gmail.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2022-05-11 17:18:42 -07:00
..
bluetooth.h Bluetooth: fix incorrect nonblock bitmask in bt_sock_wait_ready() 2022-03-18 17:12:08 +01:00
hci.h Bluetooth: hci_event: Fix checking for invalid handle on error status 2022-04-26 20:09:07 +02:00
hci_core.h Bluetooth: Fix the creation of hdev->name 2022-05-11 17:18:42 -07:00
hci_mon.h
hci_sock.h
hci_sync.h Bluetooth: hci_sync: Add hci_le_create_conn_sync 2021-12-22 23:01:35 +01:00
l2cap.h
mgmt.h Networking changes for 5.18. 2022-03-24 13:13:26 -07:00
rfcomm.h
sco.h