UKERNEL: check for null afs_CurrentDir on shutdown
authorAndrew Deason <adeason@sinenomine.net>
Tue, 6 Apr 2010 22:00:58 +0000 (17:00 -0500)
committerDerrick Brashear <shadow@dementia.org>
Fri, 9 Apr 2010 18:50:47 +0000 (11:50 -0700)
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>

src/afs/UKERNEL/afs_usrops.c

index d52655b..db55f11 100644 (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();