summaryrefslogtreecommitdiffstats
path: root/sys/nfsserver
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-05-29 15:52:39 +0000
committerrwatson <rwatson@FreeBSD.org>2004-05-29 15:52:39 +0000
commit6fd04518a1e175ce3947b801f35424fbe7238dcf (patch)
treefb8d4aa6ad13f8e3ea3729c1a05857faf72c7964 /sys/nfsserver
parent03c4a3a74cff4798be773c0df5590d6093547227 (diff)
downloadFreeBSD-src-6fd04518a1e175ce3947b801f35424fbe7238dcf.zip
FreeBSD-src-6fd04518a1e175ce3947b801f35424fbe7238dcf.tar.gz
Don't release Giant until after the call to vput() in nfsrv_setattr().
Unless running with debug.mpsafenet=1, this was not actually a problem.
Diffstat (limited to 'sys/nfsserver')
-rw-r--r--sys/nfsserver/nfs_serv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c
index 1a142df..d0e7fb1 100644
--- a/sys/nfsserver/nfs_serv.c
+++ b/sys/nfsserver/nfs_serv.c
@@ -389,8 +389,8 @@ nfsrv_setattr(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
preat.va_ctime.tv_nsec != guard.tv_nsec))
error = NFSERR_NOT_SYNC;
if (error) {
- mtx_unlock(&Giant); /* VFS */
vput(vp);
+ mtx_unlock(&Giant); /* VFS */
vp = NULL;
NFSD_LOCK();
nfsm_reply(NFSX_WCCDATA(v3));
OpenPOWER on IntegriCloud