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:Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by:
Marcel Holtmann <marcel@holtmann.org> Stable-dep-of: 9aa9d947 ("Bluetooth: L2CAP: Fix responding with wrong PDU type") Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com> (cherry picked from commit dd7023a0)
Loading
Please sign in to comment