vhost: Fix vhostfd leak in error branch
commitb19ca188022d720e6cdf87c43c27cb68bac32f6a
authorGonglei <arei.gonglei@huawei.com>
Fri, 28 Nov 2014 09:26:29 +0000 (28 17:26 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 1 Dec 2014 12:29:35 +0000 (1 12:29 +0000)
treea25ca2275c555f96376039b23487f0c450732b2f
parentdb12451decf7dfe0f083564183e135f2095228b9
vhost: Fix vhostfd leak in error branch

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 1417166789-1960-1-git-send-email-arei.gonglei@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/scsi/vhost-scsi.c
hw/virtio/vhost.c