]> git.ipfire.org Git - thirdparty/qemu.git/commit
vhost-user: call set_msgfds unconditionally
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 26 Jul 2016 21:15:09 +0000 (01:15 +0400)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 28 Jul 2016 21:33:47 +0000 (00:33 +0300)
commitdf3485a14821edf75b1d3ee6ca38cd80fa989dbf
tree8d35a94b1d2a3d86e17a628909cfe931564bfa01
parent5c7eaabf65ba936f718ef4dfcfc551ffc9d4f35c
vhost-user: call set_msgfds unconditionally

It is fine to call set_msgfds() with 0 fd, and ensures any previous fd
array is cleared.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost-user.c