vhost/vsock: fix incorrect used length reported to the guest
[linux-2.6-microblaze.git] / drivers / vhost / vsock.c
index 938aefb..4e3b95a 100644 (file)
@@ -554,7 +554,7 @@ static void vhost_vsock_handle_tx_kick(struct vhost_work *work)
                        virtio_transport_free_pkt(pkt);
 
                len += sizeof(pkt->hdr);
-               vhost_add_used(vq, head, len);
+               vhost_add_used(vq, head, 0);
                total_len += len;
                added = true;
        } while(likely(!vhost_exceeds_weight(vq, ++pkts, total_len)));