aboutsummaryrefslogtreecommitdiff
path: root/sys/miscfs/devfs/devfs_tree.c
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1996-08-13 19:48:41 +0000
committerJulian Elischer <julian@FreeBSD.org>1996-08-13 19:48:41 +0000
commitdef534af64d35344a17c0dfd24285d0932ec8cca (patch)
tree66b326301a433f42bf6363b6912834c948139cba /sys/miscfs/devfs/devfs_tree.c
parentcc98643e68f9fb58fe06bfb28fce51e163afdfe6 (diff)
Notes
Diffstat (limited to 'sys/miscfs/devfs/devfs_tree.c')
-rw-r--r--sys/miscfs/devfs/devfs_tree.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/miscfs/devfs/devfs_tree.c b/sys/miscfs/devfs/devfs_tree.c
index 192ec5469126e..354434d5a41d5 100644
--- a/sys/miscfs/devfs/devfs_tree.c
+++ b/sys/miscfs/devfs/devfs_tree.c
@@ -2,7 +2,7 @@
/*
* Written by Julian Elischer (julian@DIALix.oz.au)
*
- * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_tree.c,v 1.27 1996/07/30 18:00:32 bde Exp $
+ * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_tree.c,v 1.28 1996/08/13 07:21:44 julian Exp $
*/
#include "param.h"
@@ -889,7 +889,7 @@ DBPRINT(("dntovn "));
}
if(vn_p->v_type != VNON)
{
- vget(vn_p,0/*lockflag ?*/); /*XXX*/
+ vget(vn_p,1); /*XXX*/
*vn_pp = vn_p;
return(0);
}
@@ -954,6 +954,7 @@ DBPRINT(("(New vnode)"));
{
error = EINVAL;
}
+ VOP_LOCK(vn_p);
}
return error;
}