提交 5d5e7875 编写于 作者: J Jie Wang 提交者: Michal Privoznik

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: NJie Wang <wangjie88@huawei.com>
上级 596aa144
......@@ -5825,7 +5825,6 @@ qemuBuildHostdevCommandLine(virCommandPtr cmd,
qemuCaps,
vhostfdName))) {
VIR_FREE(vhostfdName);
VIR_FORCE_CLOSE(vhostfd);
return -1;
}
virCommandAddArg(cmd, devstr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册