afs-gunlock-when-umount-as-not-suser-20010420
authorJeremy Katz <katzj@linuxpower.org>
Sat, 21 Apr 2001 01:31:39 +0000 (01:31 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 21 Apr 2001 01:31:39 +0000 (01:31 +0000)
bad to AFS_GLOCK then exit without AFS_GUNLOCK

src/afs/LINUX/osi_vfsops.c

index f471d08..e53c337 100644 (file)
@@ -255,8 +255,10 @@ void afs_put_super(struct super_block *sbp)
     AFS_GLOCK();
     AFS_STATCNT(afs_unmount);
 
-    if (!suser())
+    if (!suser()) {
+       AFS_GUNLOCK();
        return;
+    }
 
     afs_globalVFS = 0;
     afs_globalVp = 0;