From e5615c013644b2043e14848f1553ba5774996dc4 Mon Sep 17 00:00:00 2001 From: ps Date: Thu, 3 Nov 2005 19:24:54 +0000 Subject: Fix for a crash (from nfs_lookup() in an error case). Submitted by: Mohan Srinivasan --- sys/nfsclient/nfs_vnops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/nfsclient') 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) && -- cgit v1.1