]> 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>
Thu, 14 Jun 2012 22:23:21 +0000 (18:23 -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 e42f9c402b7628bbd55a414ef4d07fec73dca990..3fefd64ad7927da8cc58f50817d8cb1842f11033 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -233,6 +233,7 @@ Patches have also been contributed by:
   MATSUDA Daiki        <matsudadik@intellilink.co.jp>
   Jan Kiszka           <jan.kiszka@siemens.com>
   Ryan Woodsmall       <rwoodsmall@gmail.com>
+  Radu Caragea         <dmns_serp@yahoo.com>
 
   [....send patches to get your name here....]
 
index be06c66b4828ce69e586cbc97f3b2ebd71081119..de61a62f34758a3704bd15a1885a2fb84c14e49e 100644 (file)
@@ -508,7 +508,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"));