提交 ecd25f52 编写于 作者: G Guido Günther

fix device hotplug

上级 830ba76c
Thu Dec 18 17:46:06 CET 2008 Guido Günther <agx@sigxcpu.org>
* src/qemu_driver.c (qemudDomainAttachDevice): only
free dev on failure
Thu Dec 18 16:13:56 CET 2008 Guido Günther <agx@sigxcpu.org>
Let qemu/kvm instances write a pid file
......
......@@ -3222,7 +3222,8 @@ static int qemudDomainAttachDevice(virDomainPtr dom,
}
cleanup:
virDomainDeviceDefFree(dev);
if (ret < 0)
virDomainDeviceDefFree(dev);
if (vm)
virDomainObjUnlock(vm);
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册