diff options
author | 2011-06-02 16:14:40 +0000 | |
---|---|---|
committer | 2011-06-02 16:14:40 +0000 | |
commit | 11e4247adf91bdcb34e6defcb63e3676a2800edc (patch) | |
tree | e560d65bd054a2ed05124a57dc25651ec74b7a52 /sys | |
parent | Revert previous; changes linking order for pkg-config --libs, breaking X on VAX. (diff) | |
download | wireguard-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.c | 3 |
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; |