aboutsummaryrefslogtreecommitdiff
path: root/sys/nfs4client
diff options
context:
space:
mode:
authorJim Rees <rees@FreeBSD.org>2004-12-01 17:58:37 +0000
committerJim Rees <rees@FreeBSD.org>2004-12-01 17:58:37 +0000
commit02a8ac2b7bdc20fa9b0b51a222602140a88f26f4 (patch)
tree6210ba73fd2d88ea3febc6a4ff1a568a28e27424 /sys/nfs4client
parent743cf01795cd931464a49f60a9153ab25980ed7e (diff)
downloadsrc-02a8ac2b7bdc20fa9b0b51a222602140a88f26f4.tar.gz
src-02a8ac2b7bdc20fa9b0b51a222602140a88f26f4.zip
Fix for a bug in nfs_mkdir() that called vrele() instead of vput()
in the error cases, causing panics. Adapted from similar fix to NFSv3 mkdir submitted by Mohan Srinivasan mohans at yahoo-inc dot com Approved by: alfred
Notes
Notes: svn path=/head/; revision=138274
Diffstat (limited to 'sys/nfs4client')
-rw-r--r--sys/nfs4client/nfs4_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfs4client/nfs4_vnops.c b/sys/nfs4client/nfs4_vnops.c
index a1b294ae8846..a73e47e1fe1c 100644
--- a/sys/nfs4client/nfs4_vnops.c
+++ b/sys/nfs4client/nfs4_vnops.c
@@ -1564,7 +1564,7 @@ nfs4_createrpc(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp,
/* XXX */
/*FREE(cnp->cn_pnbuf, M_NAMEI);*/
if (error != 0 && newvp != NULL)
- vrele(newvp);
+ vput(newvp);
else if (error == 0)
*vpp = newvp;