]> xenbits.xensource.com Git - libvirt.git/commit
qemu: avoid qemu_driver being unlocked twice when virThreadPoolNew() failed
authorWen Congyang <wency@cn.fujitsu.com>
Wed, 6 Apr 2011 07:53:11 +0000 (15:53 +0800)
committerWen Congyang <wency@cn.fujitsu.com>
Mon, 18 Apr 2011 01:38:45 +0000 (09:38 +0800)
commit847efb32de3467801924cc901d2cf80e9d7c48de
treebc0bdd9ec23718d105dda5a0ead89a40dd2076b9
parentcf7124946a019dc84866fd35e48baa7014b674df
qemu: avoid qemu_driver being unlocked twice when virThreadPoolNew() failed

We do not lock qemu_driver when calling virThreadPoolNew(). If it failed,
we will unlock qemu_driver. It is dangerous.

We may use this pool during auto starting domains. So we must create it before
calling qemuAutostartDomains(). Otherwise, libvirtd will crash.
src/qemu/qemu_driver.c