mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 23:40:13 +00:00
Windows: cm_FindServerByUuid correct lock acquisition
Obtain cm_serverLock when 'locked' is FALSE instead of when TRUE. Change-Id: I427fa849ff34734a2dd11d06f42bc709bb70a74e Reviewed-on: http://gerrit.openafs.org/5268 Reviewed-by: Jeffrey Altman <jaltman@openafs.org> Tested-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
parent
c20010850e
commit
b97383c1e6
@ -915,7 +915,7 @@ cm_FindServerByUuid(afsUUID *serverUuid, int type, int locked)
|
||||
{
|
||||
cm_server_t *tsp;
|
||||
|
||||
if (locked)
|
||||
if (!locked)
|
||||
lock_ObtainRead(&cm_serverLock);
|
||||
|
||||
for (tsp = cm_allServersp; tsp; tsp = tsp->allNextp) {
|
||||
|
Loading…
Reference in New Issue
Block a user