]> xenbits.xensource.com Git - libvirt.git/commitdiff
chDomainCreateXML: Drop spurious driver unlock
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 10 Feb 2022 14:53:15 +0000 (15:53 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 11 Feb 2022 09:48:02 +0000 (10:48 +0100)
Inside chDomainCreateXML(), towards the end, the driver is
unlocked even though there is no corresponding driver lock call
before that. Drop it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
src/ch/ch_driver.c

index 2ed33c3446d221fe4630c89531fbaa0776c97ece..b023f7e3d377e480808d4da86b2b7295a911ad35 100644 (file)
@@ -239,7 +239,6 @@ chDomainCreateXML(virConnectPtr conn,
         virDomainObjListRemove(driver->domains, vm);
     }
     virDomainObjEndAPI(&vm);
-    chDriverUnlock(driver);
     return dom;
 }