diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-09-08 17:23:22 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-09-08 17:23:22 +0000 |
commit | 834f3e10ceabdbdb5000c38628f93b68e94ae9e5 (patch) | |
tree | 08ffc6b9350182d86a2ce5dd4d143696160a7722 /sys | |
parent | 07916057d1df9f93f25c86c7c1a73a8164218aec (diff) |
tell the driver to allocate memory for the size of ath_pci_softc
instead of ath_softc. this fixes possible page faults with ath@pci.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_ath_pci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_ath_pci.c b/sys/dev/pci/if_ath_pci.c index cb14fb81f43..dee2ee2a19a 100644 --- a/sys/dev/pci/if_ath_pci.c +++ b/sys/dev/pci/if_ath_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ath_pci.c,v 1.7 2005/09/08 12:44:55 jsg Exp $ */ +/* $OpenBSD: if_ath_pci.c,v 1.8 2005/09/08 17:23:21 reyk Exp $ */ /* $NetBSD: if_ath_pci.c,v 1.7 2004/06/30 05:58:17 mycroft Exp $ */ /*- @@ -82,7 +82,7 @@ struct ath_pci_softc { struct ath_softc sc_sc; pci_chipset_tag_t sc_pc; - void *sc_ih; /* intererupt handler */ + void *sc_ih; /* interrupt handler */ u_int8_t sc_saved_intline; u_int8_t sc_saved_cachelinesz; u_int8_t sc_saved_lattimer; @@ -97,7 +97,7 @@ void ath_pci_shutdown(void *); int ath_pci_detach(struct device *, int); struct cfattach ath_pci_ca = { - sizeof(struct ath_softc), + sizeof(struct ath_pci_softc), ath_pci_match, ath_pci_attach, ath_pci_detach |