From: Andrew Deason Date: Tue, 6 Apr 2010 22:00:58 +0000 (-0500) Subject: UKERNEL: check for null afs_CurrentDir on shutdown X-Git-Tag: openafs-devel-1_5_74~54 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=d6345e824514d7f301b43b99e5f8067d66770ed7;hp=b822971a3ee6bd2dc0024b30b255f8f83e23637c 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 Tested-by: Derrick Brashear --- diff --git a/src/afs/UKERNEL/afs_usrops.c b/src/afs/UKERNEL/afs_usrops.c index d52655b..db55f11 100644 --- a/src/afs/UKERNEL/afs_usrops.c +++ b/src/afs/UKERNEL/afs_usrops.c @@ -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();