diff options
Diffstat (limited to 'sys/dev/lnc/if_lnc_pci.c')
-rw-r--r-- | sys/dev/lnc/if_lnc_pci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/lnc/if_lnc_pci.c b/sys/dev/lnc/if_lnc_pci.c index 2c49264..c69716d 100644 --- a/sys/dev/lnc/if_lnc_pci.c +++ b/sys/dev/lnc/if_lnc_pci.c @@ -104,11 +104,9 @@ lnc_pci_attach(config_id, unit) data |= PCIM_CMD_PORTEN | PCIM_CMD_BUSMASTEREN; pci_cfgwrite(config_id, PCIR_COMMAND, data, 4); - sc = malloc(sizeof *sc, M_DEVBUF, M_NOWAIT); + sc = malloc(sizeof *sc, M_DEVBUF, M_NOWAIT | M_ZERO); if (sc) { - bzero (sc, sizeof *sc); - sc->rap = iobase + PCNET_RAP; sc->rdp = iobase + PCNET_RDP; sc->bdp = iobase + PCNET_BDP; |