summaryrefslogtreecommitdiffstats
path: root/sys/nfs
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1999-11-20 16:09:10 +0000
committereivind <eivind@FreeBSD.org>1999-11-20 16:09:10 +0000
commit9ba3c6c857ff387dfba1dc0fe093856db04b05af (patch)
tree969698968ef9ab38a1ba5b2440a6628cf49c5b40 /sys/nfs
parent77bc1f2db8f26f22741aed75e63fa51f9e20346f (diff)
downloadFreeBSD-src-9ba3c6c857ff387dfba1dc0fe093856db04b05af.zip
FreeBSD-src-9ba3c6c857ff387dfba1dc0fe093856db04b05af.tar.gz
Fix VOP_MKNOD for loss of WILLRELE. I don't know how I could have missed
this in the first place :-( Noticed by: bde
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/nfs_vnops.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c
index b8fbc8b..867a6b1 100644
--- a/sys/nfs/nfs_vnops.c
+++ b/sys/nfs/nfs_vnops.c
@@ -1325,13 +1325,7 @@ nfs_mknod(ap)
struct vattr *a_vap;
} */ *ap;
{
- struct vnode *newvp;
- int error;
-
- error = nfs_mknodrpc(ap->a_dvp, &newvp, ap->a_cnp, ap->a_vap);
- if (!error)
- vput(newvp);
- return (error);
+ return nfs_mknodrpc(ap->a_dvp, ap->a_vpp, ap->a_cnp, ap->a_vap);
}
static u_long create_verf;
OpenPOWER on IntegriCloud