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:
Andrew Deason 2010-04-06 17:00:58 -05:00 committed by Derrick Brashear
parent b822971a3e
commit d6345e8245

View File

@ -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();