From c639118634cab93bdf7a8c1bdf7f1f4fd1f8a8ce Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Mon, 22 Sep 2014 18:19:07 +0200 Subject: [PATCH] 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 (cherry picked from commit fc22b2e74890873848b43fffae43025d22053669) --- src/conf/domain_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 92a3847745..d417edc05d 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -18785,7 +18785,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))) {