]> git.michaelhowe.org Git - packages/o/openafs.git/commit
STABLE14-viced-h_Enumerate_r-fix-20060301
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 1 Mar 2006 19:12:37 +0000 (19:12 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 1 Mar 2006 19:12:37 +0000 (19:12 +0000)
commit08039832aa0a834db047a13d0bf118040b446eee
tree91d881c2cde4827cf202ef81865473ff6889602e
parent139292df4bd60d3fcf2172c537baf3be64c3b57d
STABLE14-viced-h_Enumerate_r-fix-20060301

In h_Enumerate_r it is possible that the host may be released by the
called procedure.  Therefore, we must preserve the pointer to host->next
before the call and hold the host it points to in order to ensure that
it does not disappear out from under us.  This ensures that although
the H_LOCK can be dropped during the procedure and the host list can
be rearranged we won't miss more than a handful of hosts during the
enumeration.

(cherry picked from commit 36a8e29045adfcf5d3c144b0ff0bc9d1398d11b0)
src/viced/host.c