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: 4d7ea8ee90
("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8dde02229b
commit
8c7bfb6198
@@ -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 */
|
||||
|
Reference in New Issue
Block a user