git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
viced: fix missing host lock in h_Enumerate
[openafs.git]
/
src
/
viced
/
host.c
diff --git
a/src/viced/host.c
b/src/viced/host.c
index
63502a1
..
0d62f84
100644
(file)
--- a/
src/viced/host.c
+++ b/
src/viced/host.c
@@
-1014,7
+1014,9
@@
h_Enumerate(int (*proc) (struct host*, int, void *), void *param)
H_UNLOCK;
for (i = 0; i < count; i++) {
flags[i] = (*proc) (list[i], flags[i], param);
+ H_LOCK;
h_Release_r(list[i]);
+ H_UNLOCK;
/* bail out of the enumeration early */
if (H_ENUMERATE_ISSET_BAIL(flags[i]))
break;