From 4bafb7a05e1369f6799b96df0d50f31af616bb20 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Sat, 21 Apr 2001 01:31:39 +0000 Subject: [PATCH] afs-gunlock-when-umount-as-not-suser-20010420 bad to AFS_GLOCK then exit without AFS_GUNLOCK --- src/afs/LINUX/osi_vfsops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/afs/LINUX/osi_vfsops.c b/src/afs/LINUX/osi_vfsops.c index f471d0819..e53c33724 100644 --- a/src/afs/LINUX/osi_vfsops.c +++ b/src/afs/LINUX/osi_vfsops.c @@ -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; -- 2.39.5