]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix sync issue in virNetClientStreamEventRemoveCallback
authorRadu Caragea <dmns_serp@yahoo.com>
Mon, 4 Jun 2012 07:32:37 +0000 (09:32 +0200)
committerCole Robinson <crobinso@redhat.com>
Fri, 15 Jun 2012 14:56:52 +0000 (10:56 -0400)
The stream lock is unlocked twice instead of being locked and then
unlocked. Probably a typo.
(cherry picked from commit 107f51b69c44b9902ed76ab0e33e89dde5d21cb1)

Conflicts:

AUTHORS

AUTHORS
src/rpc/virnetclientstream.c

diff --git a/AUTHORS b/AUTHORS
index de2288d94f49b37f10589bc2a5f84254f600bc89..d924583ac1f333db78f24787a86819a459636d3a 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -195,6 +195,7 @@ Patches have also been contributed by:
   Xu He Jie            <xuhj@linux.vnet.ibm.com>
   Lei Li               <lilei@linux.vnet.ibm.com>
   Matthias Witte       <witte@netzquadrat.de>
+  Radu Caragea         <dmns_serp@yahoo.com>
 
   [....send patches to get your name here....]
 
index 7e2d9aeff0f6851e940537d7040aa3e241ab2c25..5f54a4d41840603efd4973876f36cd6311e3a967 100644 (file)
@@ -507,7 +507,7 @@ int virNetClientStreamEventRemoveCallback(virNetClientStreamPtr st)
 {
     int ret = -1;
 
-    virMutexUnlock(&st->lock);
+    virMutexLock(&st->lock);
     if (!st->cb) {
         virNetError(VIR_ERR_INTERNAL_ERROR,
                     "%s", _("no stream callback registered"));