diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-06-02 16:14:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-06-02 16:14:41 +0000 |
commit | 9c013e22ca6e82f533d22f511073ab22596eb107 (patch) | |
tree | d13d812707375619e80f983027837ac8576ebe3f /sys | |
parent | 8941fd33a326103978e753432daa6eaf0d198530 (diff) |
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; |