DEVEL15-windows-cell-locking-20090608
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 19 Jun 2009 04:12:21 +0000 (04:12 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 19 Jun 2009 04:12:21 +0000 (04:12 +0000)
commit84c772697d6b9914b84112481719d1e881c2672f
treefabbc8c105d007f53e68fa0057ea9a32f15b6547
parentf525fda4889066dc7fe3d2616beebb516fabebd3
DEVEL15-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.

(cherry picked from commit f5b74d9fbcc42ad3a1105df3363e6c22c16fee84)
src/WINNT/afsd/cm_cell.c
src/WINNT/afsd/cm_cell.h