From: Jeremy Katz Date: Mon, 23 Apr 2001 08:49:59 +0000 (+0000) Subject: STABLE10-afs-gunlock-when-umount-as-not-suser-20010423 X-Git-Tag: openafs-stable-1_0_4~12 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=6dc8309377e95b95dcfc30806674d3e5725f3431;p=packages%2Fo%2Fopenafs.git STABLE10-afs-gunlock-when-umount-as-not-suser-20010423 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 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;