projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
309750f
)
vhost: put log correctly in vhost_dev_start()
author
Jason Wang
<jasowang@redhat.com>
Fri, 5 Jun 2015 03:05:58 +0000
(23:05 -0400)
committer
Michael S. Tsirkin
<mst@redhat.com>
Wed, 10 Jun 2015 14:00:08 +0000
(16:00 +0200)
We allocate an dummy log even if the size is zero. So we should put it
unconditionally too.
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost.c
patch
|
blob
|
history
diff --git
a/hw/virtio/vhost.c
b/hw/virtio/vhost.c
index 01f1e0490ff4d850ac0fbd64d8c7a4a258905874..3a52a4d037b0f36945e001594415b6f0e120ebfc 100644
(file)
--- a/
hw/virtio/vhost.c
+++ b/
hw/virtio/vhost.c
@@
-1111,9
+1111,7
@@
int vhost_dev_start(struct vhost_dev *hdev, VirtIODevice *vdev)
return 0;
fail_log:
- if (hdev->log_size) {
- vhost_log_put(hdev, false);
- }
+ vhost_log_put(hdev, false);
fail_vq:
while (--i >= 0) {
vhost_virtqueue_stop(hdev,