Commit 3581096c authored by Luiz Augusto von Dentz's avatar Luiz Augusto von Dentz Committed by openeuler-sync-bot
Browse files

Bluetooth: L2CAP: Fix not checking for maximum number of DCID

stable inclusion
from stable-v5.10.177
commit 77a61df0a0e6cf9495b5524e65ffb32e06000871
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=77a61df0a0e6cf9495b5524e65ffb32e06000871



--------------------------------

[ Upstream commit 7cf3b1dd ]

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: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Stable-dep-of: 9aa9d947 ("Bluetooth: L2CAP: Fix responding with wrong PDU type")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
(cherry picked from commit dd7023a0)
parent 90a7b214
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment