STABLE14-shutdown-vcache-avoid-null-deref-20090324

LICENSE IPL10

avoid potential null pointer deref at shutdown


(cherry picked from commit 4162ff9d4d733afc788b3c002adc57aac78a3282)
This commit is contained in:
Derrick Brashear 2009-03-24 22:40:25 +00:00
parent 68b9157a06
commit 14ba3153ef

View File

@ -3072,7 +3072,7 @@ shutdown_vcache(void)
*/
{
register struct afs_q *tq, *uq;
register struct afs_q *tq, *uq = NULL;
register struct vcache *tvc;
for (tq = VLRU.prev; tq != &VLRU; tq = uq) {
tvc = QTOV(tq);
@ -3127,6 +3127,7 @@ shutdown_vcache(void)
tvc->linkData = 0;
}
if (tvc->Access)
afs_FreeAllAxs(&(tvc->Access));
}
afs_vhashT[i] = 0;