mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
shutdown-vcache-avoid-null-deref-20090324
LICENSE IPL10 avoid potential null pointer deref at shutdown
This commit is contained in:
parent
cc0922c26f
commit
4162ff9d4d
@ -3286,7 +3286,7 @@ shutdown_vcache(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
{
|
{
|
||||||
register struct afs_q *tq, *uq;
|
register struct afs_q *tq, *uq = NULL;
|
||||||
register struct vcache *tvc;
|
register struct vcache *tvc;
|
||||||
for (tq = VLRU.prev; tq != &VLRU; tq = uq) {
|
for (tq = VLRU.prev; tq != &VLRU; tq = uq) {
|
||||||
tvc = QTOV(tq);
|
tvc = QTOV(tq);
|
||||||
@ -3341,7 +3341,8 @@ shutdown_vcache(void)
|
|||||||
tvc->linkData = 0;
|
tvc->linkData = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
afs_FreeAllAxs(&(tvc->Access));
|
if (tvc->Access)
|
||||||
|
afs_FreeAllAxs(&(tvc->Access));
|
||||||
}
|
}
|
||||||
afs_vhashT[i] = 0;
|
afs_vhashT[i] = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user