diff options
author | David Malone <dwmalone@FreeBSD.org> | 2000-12-08 21:51:06 +0000 |
---|---|---|
committer | David Malone <dwmalone@FreeBSD.org> | 2000-12-08 21:51:06 +0000 |
commit | 7cc0979fd64b721c92c3dd4a8688b56e15c9a5f9 (patch) | |
tree | c383ffd6da8fbab2789828310191f8717f675124 /sys/dev/pdq/if_fpa.c | |
parent | b1f3daafde37fa36b819c0649c121d98175a6a2d (diff) | |
download | src-7cc0979fd64b721c92c3dd4a8688b56e15c9a5f9.tar.gz src-7cc0979fd64b721c92c3dd4a8688b56e15c9a5f9.zip |
Notes
Diffstat (limited to 'sys/dev/pdq/if_fpa.c')
-rw-r--r-- | sys/dev/pdq/if_fpa.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/pdq/if_fpa.c b/sys/dev/pdq/if_fpa.c index d70628a9e708..a5eea3c17e54 100644 --- a/sys/dev/pdq/if_fpa.c +++ b/sys/dev/pdq/if_fpa.c @@ -169,11 +169,10 @@ pdq_pci_attach( pci_conf_write(config_id, PCI_CFLT, data); } - sc = (pdq_softc_t *) malloc(sizeof(*sc), M_DEVBUF, M_NOWAIT); + sc = (pdq_softc_t *) malloc(sizeof(*sc), M_DEVBUF, M_NOWAIT | M_ZERO); if (sc == NULL) return; - bzero(sc, sizeof(pdq_softc_t)); /* Zero out the softc*/ if (!pci_map_mem(config_id, PCI_CBMA, &va_csrs, &pa_csrs)) { free((void *) sc, M_DEVBUF); return; |