projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vhost/vsock: fix incorrect used length reported to the guest
[linux-2.6-microblaze.git]
/
drivers
/
vhost
/
vsock.c
diff --git
a/drivers/vhost/vsock.c
b/drivers/vhost/vsock.c
index
938aefb
..
4e3b95a
100644
(file)
--- a/
drivers/vhost/vsock.c
+++ b/
drivers/vhost/vsock.c
@@
-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)));