From 3130848a107099ed73ce81d5e63da23dd8e4e27c Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Thu, 11 Dec 2008 15:00:12 +0000 Subject: [PATCH] Fix a locking issue in PoolGetAutostart. --- ChangeLog | 6 +++++- src/storage_driver.c | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) 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; }