windows-cell-locking-20090608
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 8 Jun 2009 23:09:19 +0000 (23:09 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 8 Jun 2009 23:09:19 +0000 (23:09 +0000)
commitf5b74d9fbcc42ad3a1105df3363e6c22c16fee84
tree56d149503024912dbdf5f7f6cb0a3d2a8c0fa1bd
parent7bf6fd6bcbdcb87544798c9634618fccb4678f45
windows-cell-locking-20090608

LICENSE MIT
FIXES 124910

cm_cellLock protects the cm_cell_t fields allNextp, nameNextp, idNextp,
and freeNextp.  Therefore, a write lock must be obtained whenever those
items may change.  This patch makes that consistent.

This patch also fixes an out of order lock acquisition and removes
cm_cell_t objects from the id and name hash tables before freeing them.
src/WINNT/afsd/cm_cell.c
src/WINNT/afsd/cm_cell.h