summaryrefslogtreecommitdiffstats
path: root/sys/dev/vx
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>2004-08-11 20:35:55 +0000
committergibbs <gibbs@FreeBSD.org>2004-08-11 20:35:55 +0000
commit43882d29923b142a1dc8f3587ca95e624bf45de5 (patch)
tree94c27620546c11805e3b199807239dae406073e4 /sys/dev/vx
parentd87fe3ee1e9c12f7d20daf4888de468623104106 (diff)
downloadFreeBSD-src-43882d29923b142a1dc8f3587ca95e624bf45de5.zip
FreeBSD-src-43882d29923b142a1dc8f3587ca95e624bf45de5.tar.gz
Correctly export the size of our softc to newbus in our EISA attachement.
This avoids a panic upon first softc field reference.
Diffstat (limited to 'sys/dev/vx')
-rw-r--r--sys/dev/vx/if_vx_eisa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vx/if_vx_eisa.c b/sys/dev/vx/if_vx_eisa.c
index faf3f9d..f51c055 100644
--- a/sys/dev/vx/if_vx_eisa.c
+++ b/sys/dev/vx/if_vx_eisa.c
@@ -183,7 +183,7 @@ static device_method_t vx_eisa_methods[] = {
static driver_t vx_eisa_driver = {
"vx",
vx_eisa_methods,
- 1, /* unused */
+ sizeof(struct vx_softc)
};
static devclass_t vx_devclass;
OpenPOWER on IntegriCloud