From: Cole Robinson Date: Thu, 11 Dec 2008 15:00:12 +0000 (+0000) Subject: Fix a locking issue in PoolGetAutostart. X-Git-Tag: LIBVIRT_0_6_0~248 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3130848a107099ed73ce81d5e63da23dd8e4e27c;p=thirdparty%2Flibvirt.git Fix a locking issue in PoolGetAutostart. --- diff --git a/ChangeLog b/ChangeLog index 5d39d14499..6028a4529d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ +Thu Dec 11 09:58:49 EST 2008 Cole Robinson + + * src/storage_driver.c : Fix a locking issue in PoolGetAutostart + Thu Dec 11 09:55:23 EST 2008 Cole Robinson - * src/netork_driver.c src/qemu_conf.c: Fix segfault if virtual + * src/network_driver.c src/qemu_conf.c: Fix segfault if virtual network does not have a bridge name. Thu Dec 11 12:39:20 CET 2008 Daniel Veillard diff --git a/src/storage_driver.c b/src/storage_driver.c index 63593cc9a1..2432a9a38a 100644 --- a/src/storage_driver.c +++ b/src/storage_driver.c @@ -911,8 +911,9 @@ storagePoolGetAutostart(virStoragePoolPtr obj, } ret = 0; - return 0; cleanup: + if (pool) + virStoragePoolObjUnlock(pool); return ret; }