aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pdq/if_fpa.c
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2000-12-08 21:51:06 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2000-12-08 21:51:06 +0000
commit7cc0979fd64b721c92c3dd4a8688b56e15c9a5f9 (patch)
treec383ffd6da8fbab2789828310191f8717f675124 /sys/dev/pdq/if_fpa.c
parentb1f3daafde37fa36b819c0649c121d98175a6a2d (diff)
downloadsrc-7cc0979fd64b721c92c3dd4a8688b56e15c9a5f9.tar.gz
src-7cc0979fd64b721c92c3dd4a8688b56e15c9a5f9.zip
Notes
Diffstat (limited to 'sys/dev/pdq/if_fpa.c')
-rw-r--r--sys/dev/pdq/if_fpa.c3
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;