summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2025-04-24 22:51:03 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-05-09 09:43:58 +0200
commit8c7bfb6198a7f2489a149b81178f1cb3750c5d3a (patch)
tree919f10ca3804b8912d2e8bb6f0e5c1597a537e3c /net
parent8dde02229b3c782102ee9ef629e93c0c4f3219b6 (diff)
downloadlinux-8c7bfb6198a7f2489a149b81178f1cb3750c5d3a.tar.gz
linux-8c7bfb6198a7f2489a149b81178f1cb3750c5d3a.tar.bz2
linux-8c7bfb6198a7f2489a149b81178f1cb3750c5d3a.zip
Bluetooth: L2CAP: copy RX timestamp to new fragments
[ Upstream commit 3908feb1bd7f319a10e18d84369a48163264cc7d ] Copy timestamp too when allocating new skb for received fragment. Fixes missing RX timestamps with fragmentation. Fixes: 4d7ea8ee90e4 ("Bluetooth: L2CAP: Fix handling fragmented length") Signed-off-by: Pauli Virtanen <pav@iki.fi> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/l2cap_core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index d4dcdb2370cc..72ee41b894a5 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -7386,6 +7386,9 @@ static int l2cap_recv_frag(struct l2cap_conn *conn, struct sk_buff *skb,
return -ENOMEM;
/* Init rx_len */
conn->rx_len = len;
+
+ skb_set_delivery_time(conn->rx_skb, skb->tstamp,
+ skb->tstamp_type);
}
/* Copy as much as the rx_skb can hold */