diff options
author | ps <ps@FreeBSD.org> | 2005-11-03 19:24:54 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2005-11-03 19:24:54 +0000 |
commit | e5615c013644b2043e14848f1553ba5774996dc4 (patch) | |
tree | bd37856e533bce54c65d2df207f6b49b24d4d93a /sys/nfsclient | |
parent | aaf1885b0a4d3b49864dfc2d31011601dd0d80bf (diff) | |
download | FreeBSD-src-e5615c013644b2043e14848f1553ba5774996dc4.zip FreeBSD-src-e5615c013644b2043e14848f1553ba5774996dc4.tar.gz |
Fix for a crash (from nfs_lookup() in an error case).
Submitted by: Mohan Srinivasan
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c index efeb8bc..b80ab14 100644 --- a/sys/nfsclient/nfs_vnops.c +++ b/sys/nfsclient/nfs_vnops.c @@ -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) && |