mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
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>
This commit is contained in:
parent
596aa144c4
commit
5d5e7875cd
@ -5825,7 +5825,6 @@ qemuBuildHostdevCommandLine(virCommandPtr cmd,
|
||||
qemuCaps,
|
||||
vhostfdName))) {
|
||||
VIR_FREE(vhostfdName);
|
||||
VIR_FORCE_CLOSE(vhostfd);
|
||||
return -1;
|
||||
}
|
||||
virCommandAddArg(cmd, devstr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user