windows-scache-refcount-race-20080207
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 7 Feb 2008 21:20:02 +0000 (21:20 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 7 Feb 2008 21:20:02 +0000 (21:20 +0000)
LICENSE MIT

if we are going to call a NoLock function better be holding the lock

src/WINNT/afsd/cm_callback.c

index 4cea28c..6c4b447 100644 (file)
@@ -1928,8 +1928,8 @@ void cm_CheckCBExpiration(void)
                 lock_ReleaseMutex(&scp->mx);
                 cm_CallbackNotifyChange(scp);
 
-                cm_ReleaseSCacheNoLock(scp);
                 lock_ObtainWrite(&cm_scacheLock);
+                cm_ReleaseSCacheNoLock(scp);
             }
         }
     }