hw/virtio/vhost-user: don't use uninitialized variable
authorChangpeng Liu <changpeng.liu@intel.com>
Wed, 25 May 2022 12:55:39 +0000 (20:55 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 9 Jun 2022 23:32:49 +0000 (19:32 -0400)
commitfb38d0c97dd665f7e0c1cb8176090500ce2275e1
treea330ec8cbea0a4e65cb8e6ec567878cc170a87fd
parent5060004c303ce564e6ddb87d8255b7741870f9d6
hw/virtio/vhost-user: don't use uninitialized variable

Variable `vdev` in `struct vhost_dev` will not be ready
until start the device, so let's not use it for the error
output here.

Fixes: 5653493 ("hw/virtio/vhost-user: don't suppress F_CONFIG when supported")
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Message-Id: <20220525125540.50979-1-changpeng.liu@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Fixes: 5653493 ("hw/virtio/vhost-user: don't suppress F_CONFIG when supported")
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Fixes: 5653493 ("hw/virtio/vhost-user: don't suppress F_CONFIG when supported")
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
hw/virtio/vhost-user.c