diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-05-29 15:52:39 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-05-29 15:52:39 +0000 |
commit | 6fd04518a1e175ce3947b801f35424fbe7238dcf (patch) | |
tree | fb8d4aa6ad13f8e3ea3729c1a05857faf72c7964 /sys/nfsserver | |
parent | 03c4a3a74cff4798be773c0df5590d6093547227 (diff) | |
download | FreeBSD-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.c | 2 |
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)); |