Skip to content

Commit 432572d

Browse files
pvgregkh
authored andcommitted
Bluetooth: L2CAP: copy RX timestamp to new fragments
[ Upstream commit 3908feb ] 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]> Signed-off-by: Sasha Levin <[email protected]>
1 parent cfe006c commit 432572d

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
@@ -7380,6 +7380,9 @@ static int l2cap_recv_frag(struct l2cap_conn *conn, struct sk_buff *skb,
73807380
return -ENOMEM;
73817381
/* Init rx_len */
73827382
conn->rx_len = len;
7383+
7384+
skb_set_delivery_time(conn->rx_skb, skb->tstamp,
7385+
skb->tstamp_type);
73837386
}
73847387

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

0 commit comments

Comments
 (0)