summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2009-08-14 13:53:17 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2009-08-14 13:53:17 +0000
commit5d55352de869d1d2d4924472e21221cf550fbb7e (patch)
tree7f99c75164d41c172ac7c7fd5a3aa0c46dc2e912 /sys
parentd2b70e8ef5ab7b2f6d028b2a85030ba192e35a1a (diff)
Avoid double-release of vnodes in several functions
ok thib@
Diffstat (limited to 'sys')
-rw-r--r--sys/nfs/nfs_serv.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c
index 64f80e312a6..008d9299757 100644
--- a/sys/nfs/nfs_serv.c
+++ b/sys/nfs/nfs_serv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_serv.c,v 1.86 2009/08/14 11:06:35 blambert Exp $ */
+/* $OpenBSD: nfs_serv.c,v 1.87 2009/08/14 13:53:16 blambert Exp $ */
/* $NetBSD: nfs_serv.c,v 1.34 1997/05/12 23:37:12 fvdl Exp $ */
/*
@@ -921,8 +921,6 @@ nfsrv_create(nfsd, slp, procp, mrq)
nfsm_reply(NFSX_WCCDATA(info.nmi_v3));
nfsm_srvwcc(nfsd, dirfor_ret, &dirfor, diraft_ret, &diraft,
&info);
- if (dirp)
- vrele(dirp);
error = 0;
goto nfsmout;
}
@@ -1161,10 +1159,6 @@ nfsrv_mknod(nfsd, slp, procp, mrq)
nfsm_reply(NFSX_WCCDATA(1));
nfsm_srvwcc(nfsd, dirfor_ret, &dirfor, diraft_ret, &diraft,
&info);
- if (dirp) {
- vrele(dirp);
- dirp = NULL;
- }
error = 0;
goto nfsmout;
}
@@ -1854,8 +1848,6 @@ nfsrv_mkdir(nfsd, slp, procp, mrq)
nfsm_reply(NFSX_WCCDATA(info.nmi_v3));
nfsm_srvwcc(nfsd, dirfor_ret, &dirfor, diraft_ret, &diraft,
&info);
- if (dirp)
- vrele(dirp);
error = 0;
goto nfsmout;
}