summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2011-06-02 16:14:40 +0000
committerderaadt <deraadt@openbsd.org>2011-06-02 16:14:40 +0000
commit11e4247adf91bdcb34e6defcb63e3676a2800edc (patch)
treee560d65bd054a2ed05124a57dc25651ec74b7a52 /sys
parentRevert previous; changes linking order for pkg-config --libs, breaking X on VAX. (diff)
downloadwireguard-openbsd-11e4247adf91bdcb34e6defcb63e3676a2800edc.tar.xz
wireguard-openbsd-11e4247adf91bdcb34e6defcb63e3676a2800edc.zip
device_ref() by hand, since this is a pseudo-device and was not attached
through config_attach() ok matthew jsing
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/vnd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c
index 9aac667a038..ce0b5b2209c 100644
--- a/sys/dev/vnd.c
+++ b/sys/dev/vnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnd.c,v 1.116 2011/05/31 17:35:35 matthew Exp $ */
+/* $OpenBSD: vnd.c,v 1.117 2011/06/02 16:14:40 deraadt Exp $ */
/* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
/*
@@ -182,6 +182,7 @@ vndattach(int num)
vnd_softc = (struct vnd_softc *)mem;
for (i = 0; i < num; i++) {
rw_init(&vnd_softc[i].sc_rwlock, "vndlock");
+ device_ref(&vnd_softc[i].sc_dev);
}
numvnd = num;