summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorbriggs <briggs@NetBSD.org>2009-01-02 22:03:07 +0000
committerbriggs <briggs@NetBSD.org>2009-01-02 22:03:07 +0000
commitbbc63cf4908c8235a80d39db266b6129b789f190 (patch)
treec28de0187d66d4bac8bc9022b67235532b52a72f /sys/dev
parent3c58d5b25fc0e3e17f8ab29f3cf6249af700dd54 (diff)
Allocate enough space for the aac_pci_softc, not just the aac_softc.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/aac_pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/aac_pci.c b/sys/dev/pci/aac_pci.c
index 36320d389af..965cc78fab0 100644
--- a/sys/dev/pci/aac_pci.c
+++ b/sys/dev/pci/aac_pci.c
@@ -1,4 +1,4 @@
-/* $NetBSD: aac_pci.c,v 1.25 2008/05/08 15:33:34 sborrill Exp $ */
+/* $NetBSD: aac_pci.c,v 1.26 2009/01/02 22:03:07 briggs Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aac_pci.c,v 1.25 2008/05/08 15:33:34 sborrill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aac_pci.c,v 1.26 2009/01/02 22:03:07 briggs Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -565,7 +565,7 @@ aac_pci_attach(struct device *parent, struct device *self, void *aux)
bus_space_unmap(sc->sc_memt, sc->sc_memh, memsize);
}
-CFATTACH_DECL(aac_pci, sizeof(struct aac_softc),
+CFATTACH_DECL(aac_pci, sizeof(struct aac_pci_softc),
aac_pci_match, aac_pci_attach, NULL, NULL);
/*