Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+1 -1
+1 -1
net/bluetooth/l2cap_core.c
··· 6740 6740 6741 6741 if (sdu_len > chan->imtu) { 6742 6742 BT_ERR("Too big LE L2CAP SDU length: len %u > %u", 6743 - skb->len, sdu_len); 6743 + sdu_len, chan->imtu); 6744 6744 l2cap_send_disconn_req(chan, ECONNRESET); 6745 6745 err = -EMSGSIZE; 6746 6746 goto failed;