]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
AsyncSocket: Fix lock rank violation introduced by WaitForReadMultiple
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:39 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:39 +0000 (11:23 -0700)
There's a lock call that should be an unlock.

open-vm-tools/lib/asyncsocket/asyncsocket.c

index 2dfbbc448eb86c0688ed2b6c2943df22d58583c0..a997a2f3c8a78d8472e989b57a885527174b54f7 100644 (file)
@@ -2656,7 +2656,7 @@ AsyncTCPSocketPollWork(AsyncTCPSocket **asock,     // IN:
       }
 
       if (parentSock != NULL) {
-         AsyncTCPSocketLock(parentSock);
+         AsyncTCPSocketUnlock(parentSock);
          retval = select(1, read ? &rwfds : NULL, read ? NULL : &rwfds,
                          &exceptfds, timeoutMS >= 0 ? &tv : NULL);
          AsyncTCPSocketLock(parentSock);