Fix for a crash (from nfs_lookup() in an error case).

Submitted by:	Mohan Srinivasan
This commit is contained in:
Paul Saab 2005-11-03 19:24:54 +00:00
parent acd58322c7
commit 9c31df40bb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152019

View File

@ -890,7 +890,7 @@ nfs_lookup(struct vop_lookup_args *ap)
nfsmout:
if (error) {
if (newvp != NULLVP) {
vrele(newvp);
vput(newvp);
*vpp = NULLVP;
}
if ((cnp->cn_nameiop == CREATE || cnp->cn_nameiop == RENAME) &&