]> git.proxmox.com Git - mirror_qemu.git/commit - hw/virtio/vhost.c
vhost: put log correctly in vhost_dev_start()
authorJason Wang <jasowang@redhat.com>
Fri, 5 Jun 2015 03:05:58 +0000 (23:05 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 10 Jun 2015 14:00:08 +0000 (16:00 +0200)
commit24bfa207efb9b9d591552eefc1f414ff33ef0eac
tree9e274addafad0e1d6734ad059c6fe09c560c34c9
parent309750fad51f17d1ec6195c5d8ad7d741596ddb6
vhost: put log correctly in vhost_dev_start()

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