Skip to content

Commit 3908feb

Browse files
pvVudentz
authored andcommitted
Bluetooth: L2CAP: copy RX timestamp to new fragments
Copy timestamp too when allocating new skb for received fragment. Fixes missing RX timestamps with fragmentation. Fixes: 4d7ea8e ("Bluetooth: L2CAP: Fix handling fragmented length") Signed-off-by: Pauli Virtanen <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 1c76649 commit 3908feb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/bluetooth/l2cap_core.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7415,6 +7415,9 @@ static int l2cap_recv_frag(struct l2cap_conn *conn, struct sk_buff *skb,
74157415
return -ENOMEM;
74167416
/* Init rx_len */
74177417
conn->rx_len = len;
7418+
7419+
skb_set_delivery_time(conn->rx_skb, skb->tstamp,
7420+
skb->tstamp_type);
74187421
}
74197422

74207423
/* Copy as much as the rx_skb can hold */

0 commit comments

Comments
 (0)