diff options
Diffstat (limited to 'sys/dev/lmc/if_lmc_fbsd3.c')
-rw-r--r-- | sys/dev/lmc/if_lmc_fbsd3.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/lmc/if_lmc_fbsd3.c b/sys/dev/lmc/if_lmc_fbsd3.c index ce7c947..f6f9bf9 100644 --- a/sys/dev/lmc/if_lmc_fbsd3.c +++ b/sys/dev/lmc/if_lmc_fbsd3.c @@ -137,10 +137,9 @@ lmc_pci_attach(pcici_t config_id, int unit) /* * allocate memory for the softc */ - sc = (lmc_softc_t *) malloc(sizeof(*sc), M_DEVBUF, M_NOWAIT); + sc = (lmc_softc_t *) malloc(sizeof(*sc), M_DEVBUF, M_NOWAIT | M_ZERO); if (sc == NULL) return; - bzero(sc, sizeof(*sc)); /* Zero out the softc*/ revinfo = PCI_CONF_READ(PCI_CFRV) & 0xFF; id = PCI_CONF_READ(PCI_CFID); |