]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Bluetooth: L2CAP: Fix not checking l2cap_chan security level
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 7 May 2025 19:00:30 +0000 (15:00 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 22 May 2025 17:04:39 +0000 (13:04 -0400)
commit631c8682c3b8ce2678b2d849b3f28e5568853591
treecb15285bfe4486029b6e07a71660543ac10fd94d
parent23205562ffc8de20f57afdd984858cab29e77968
Bluetooth: L2CAP: Fix not checking l2cap_chan security level

l2cap_check_enc_key_size shall check the security level of the
l2cap_chan rather than the hci_conn since for incoming connection
request that may be different as hci_conn may already been
encrypted using a different security level.

Fixes: 522e9ed157e3 ("Bluetooth: l2cap: Check encryption key size on incoming connection")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/l2cap_core.c