]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_command: fix double_close vhostfd in qemuBuildHostdevCommandLine
authorJie Wang <wangjie88@huawei.com>
Tue, 30 Apr 2019 05:24:15 +0000 (13:24 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 30 Apr 2019 09:10:36 +0000 (11:10 +0200)
commit5d5e7875cd3644857b4ac6cc7f77811702b0e2cc
tree752b68b3f4ca84122ce43bcdf00ee7f2010059ba
parent596aa144c4cee19928c4390830b490f03b3d0cbb
qemu_command: fix double_close vhostfd in qemuBuildHostdevCommandLine

vhostfd passed to cmd->passfd in virCommandPassFD, virCommandFree will
always close cmd->passfd when qemuBuildSCSIVHostHostdevDevStr failed.

Signed-off-by: Jie Wang <wangjie88@huawei.com>
src/qemu/qemu_command.c