From: Jeremy Katz Date: Sat, 21 Apr 2001 01:31:39 +0000 (+0000) Subject: afs-gunlock-when-umount-as-not-suser-20010420 X-Git-Tag: openafs-stable-1_1_0~194 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=4bafb7a05e1369f6799b96df0d50f31af616bb20 afs-gunlock-when-umount-as-not-suser-20010420 bad to AFS_GLOCK then exit without AFS_GUNLOCK --- diff --git a/src/afs/LINUX/osi_vfsops.c b/src/afs/LINUX/osi_vfsops.c index f471d08..e53c337 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;