projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was generated by cvs2svn to track changes on a CVS vendor
[unix-history]
/
sys
/
kern
/
spec_vnops.c
diff --git
a/sys/kern/spec_vnops.c
b/sys/kern/spec_vnops.c
index
78874f0
..
12e5ce4
100644
(file)
--- a/
sys/kern/spec_vnops.c
+++ b/
sys/kern/spec_vnops.c
@@
-31,7
+31,7
@@
* SUCH DAMAGE.
*
* from: @(#)spec_vnops.c 7.37 (Berkeley) 5/30/91
* SUCH DAMAGE.
*
* from: @(#)spec_vnops.c 7.37 (Berkeley) 5/30/91
- * $Id: spec_vnops.c,v 1.
2 1993/10/16 15:24:37 rgrimes
Exp $
+ * $Id: spec_vnops.c,v 1.
3 1993/11/25 01:33:15 wollman
Exp $
*/
#include "param.h"
*/
#include "param.h"
@@
-137,7
+137,9
@@
spec_open(vp, mode, cred, p)
if ((u_int)maj >= nchrdev)
return (ENXIO);
VOP_UNLOCK(vp);
if ((u_int)maj >= nchrdev)
return (ENXIO);
VOP_UNLOCK(vp);
+ vp->v_opencount++;
error = (*cdevsw[maj].d_open)(dev, mode, S_IFCHR, p);
error = (*cdevsw[maj].d_open)(dev, mode, S_IFCHR, p);
+ --vp->v_opencount;
VOP_LOCK(vp);
return (error);
VOP_LOCK(vp);
return (error);