From: Pavel Hrdina Date: Mon, 22 Sep 2014 16:19:07 +0000 (+0200) Subject: domain_conf: fix domain deadlock X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=fc22b2e74890873848b43fffae43025d22053669;p=libvirt.git 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 --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index b114737549..6ea25df401 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -20560,7 +20560,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))) {