diff options
author | Jim Rees <rees@FreeBSD.org> | 2004-12-01 17:58:37 +0000 |
---|---|---|
committer | Jim Rees <rees@FreeBSD.org> | 2004-12-01 17:58:37 +0000 |
commit | 02a8ac2b7bdc20fa9b0b51a222602140a88f26f4 (patch) | |
tree | 6210ba73fd2d88ea3febc6a4ff1a568a28e27424 | |
parent | 743cf01795cd931464a49f60a9153ab25980ed7e (diff) | |
download | src-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
-rw-r--r-- | sys/nfs4client/nfs4_vnops.c | 2 |
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; |