]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Bluetooth: L2CAP: Fix printing wrong information if SDU length exceeds MTU
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 16 Mar 2026 18:34:13 +0000 (14:34 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 13 Apr 2026 13:17:52 +0000 (09:17 -0400)
commit15bf35a660eb82a49f8397fc3d3acada8dae13db
tree6534d56ae2c90e620979a0fa31ffe97953948706
parent9f168e4de5fd43766f6d49b393f445be805c1e05
Bluetooth: L2CAP: Fix printing wrong information if SDU length exceeds MTU

The code was printing skb->len and sdu_len in the places where it should
be sdu_len and chan->imtu respectively to match the if conditions.

Link: https://lore.kernel.org/linux-bluetooth/20260315132013.75ab40c5@kernel.org/T/#m1418f9c82eeff8510c1beaa21cf53af20db96c06
Fixes: e1d9a6688986 ("Bluetooth: LE L2CAP: Disconnect if received packet's SDU exceeds IMTU")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
net/bluetooth/l2cap_core.c