android_kernel_xiaomi_sm8450/include/net/bluetooth
Luiz Augusto von Dentz 77a61df0a0 Bluetooth: L2CAP: Fix not checking for maximum number of DCID
[ Upstream commit 7cf3b1dd6aa603fd80969e9e7160becf1455a0eb ]

When receiving L2CAP_CREDIT_BASED_CONNECTION_REQ the remote may request
more channels than allowed by the spec (10 octecs = 5 CIDs) so this
checks if the number of channels is bigger than the maximum allowed and
respond with an error.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Stable-dep-of: 9aa9d9473f15 ("Bluetooth: L2CAP: Fix responding with wrong PDU type")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-04-05 11:23:36 +02:00
..
bluetooth.h Bluetooth: Fix bt_skb_sendmmsg not allocating partial chunks 2022-07-29 17:19:27 +02:00
hci_core.h Bluetooth: use inclusive language when filtering devices 2022-06-09 10:21:09 +02: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.h Bluetooth: use inclusive language when filtering devices 2022-06-09 10:21:09 +02:00
l2cap.h Bluetooth: L2CAP: Fix not checking for maximum number of DCID 2023-04-05 11:23:36 +02:00
mgmt.h Bluetooth: Emit controller suspend and resume events 2020-09-13 09:55:26 +02: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