summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Hrdina <phrdina@redhat.com>2014-09-22 18:19:07 +0200
committerEric Blake <eblake@redhat.com>2014-10-01 11:42:10 -0600
commit64c04d03ce8d364043e692659220ae1094f1a0cf (patch)
tree89310fe2934b90f01010ff16eaf28d8832cb4ac2
parented071fee073bc5a439ec64f0e501d5f90c41dec5 (diff)
downloadlibvirt-64c04d03ce8d364043e692659220ae1094f1a0cf.tar.gz
domain_conf: fix domain deadlock
If you use public api virConnectListAllDomains() with second parameter set to NULL to get only the number of domains you will lock out all other operations with domains. Introduced by commit 2c680804. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> (cherry picked from commit fc22b2e74890873848b43fffae43025d22053669)
-rw-r--r--src/conf/domain_conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index faae9d39ab..d862575741 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -18200,7 +18200,7 @@ virDomainListPopulate(void *payload,
/* just count the machines */
if (!data->domains) {
data->ndomains++;
- return;
+ goto cleanup;
}
if (!(dom = virGetDomain(data->conn, vm->def->name, vm->def->uuid))) {