]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Bluetooth: L2CAP: copy RX timestamp to new fragments
authorPauli Virtanen <pav@iki.fi>
Thu, 24 Apr 2025 19:51:03 +0000 (22:51 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 25 Apr 2025 19:03:19 +0000 (15:03 -0400)
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>
net/bluetooth/l2cap_core.c

index 5ca7ac43c58d4b91d7839ed916b12bb0577aa370..73472756618a0cf9eea4c441702f57edf8e44a67 100644 (file)
@@ -7415,6 +7415,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 */