mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
xm_internal.c: fix locking bug: s/Lock/Unlock/
* src/xm_internal.c (xenXMDomainDefineXML): Release lock, (don't try to acquire it) upon failure, just before returning.
This commit is contained in:
1 parent
a7acdde406
commit
d0eab955c2
2 files changed
+7
-1
No files matched your search
@@ -1,3 +1,9 @@
|
||||
Thu Jan 22 20:17:35 +0100 2009 Jim Meyering <meyering@redhat.com>
|
||||
|
||||
xm_internal.c: fix locking bug: s/Lock/Unlock/
|
||||
* src/xm_internal.c (xenXMDomainDefineXML): Release lock, (don't
|
||||
try to acquire it) upon failure, just before returning.
|
||||
|
||||
Thu Jan 22 10:35:03 PST 2009 John Levon <john.levon@sun.com>
|
||||
|
||||
* gnulib/tests/.cvsignore: add test-random_r
|
||||
|
||||
+1
-1
@@ -2357,7 +2357,7 @@ virDomainPtr xenXMDomainDefineXML(virConnectPtr conn, const char *xml) {
|
||||
|
||||
if (!(def = virDomainDefParseString(conn, priv->caps, xml,
|
||||
VIR_DOMAIN_XML_INACTIVE))) {
|
||||
xenUnifiedLock(priv);
|
||||
xenUnifiedUnlock(priv);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user