mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
UKERNEL: check for null afs_CurrentDir on shutdown
During shutdown, do not release afs_CurrentDir if we don't have one. Change-Id: I809a23f36929a02cb63753d66627357615cbaf9e Reviewed-on: http://gerrit.openafs.org/1717 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
b822971a3e
commit
d6345e8245
@ -1946,7 +1946,9 @@ uafs_Shutdown(void)
|
||||
printf("\n");
|
||||
|
||||
AFS_GLOCK();
|
||||
VN_RELE(afs_CurrentDir);
|
||||
if (afs_CurrentDir) {
|
||||
VN_RELE(afs_CurrentDir);
|
||||
}
|
||||
rc = afs_unmount(&afs_RootVfs);
|
||||
usr_assert(rc == 0);
|
||||
AFS_GUNLOCK();
|
||||
|
Loading…
Reference in New Issue
Block a user