Message ID | f353cf87-dbb6-375b-6428-c51663ab4d3a@sberdevices.ru (mailing list archive) |
---|---|
State | Accepted |
Commit | f7154d967bc4ee25ea1572937550e711b2525474 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | fix header length on skb merging | expand |
diff --git a/net/vmw_vsock/virtio_transport_common.c b/net/vmw_vsock/virtio_transport_common.c index 7fc178c3ee07..b9144af71553 100644 --- a/net/vmw_vsock/virtio_transport_common.c +++ b/net/vmw_vsock/virtio_transport_common.c @@ -1101,7 +1101,7 @@ virtio_transport_recv_enqueue(struct vsock_sock *vsk, memcpy(skb_put(last_skb, skb->len), skb->data, skb->len); free_pkt = true; last_hdr->flags |= hdr->flags; - last_hdr->len = cpu_to_le32(last_skb->len); + le32_add_cpu(&last_hdr->len, len); goto out; } }