The vnode was not being vput()'d in the EEXIST mknod case on the nfs

server side.  This can lead to a system deadlock.

Reviewed by:    iedowse
Tested by:      Alexey G Misurenko <mag@caravan.ru>, iedowse
Bug found with help by: Alexey G Misurenko <mag@caravan.ru>
MFC at:         earliest convenience
This commit is contained in:
Matthew Dillon 2002-01-14 19:14:08 +00:00
parent 24043ba7ec
commit 9348f5e7a6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89367

View File

@ -2000,6 +2000,8 @@ nfsrv_mknod(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
error = VFS_VPTOFH(vp, &fhp->fh_fid);
if (!error)
error = VOP_GETATTR(vp, vap, cred, td);
}
if (vp) {
vput(vp);
vp = NULL;
nd.ni_vp = NULL;