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/contrib/dev/oltr | |
| parent | b1f3daafde37fa36b819c0649c121d98175a6a2d (diff) | |
Notes
Diffstat (limited to 'sys/contrib/dev/oltr')
| -rw-r--r-- | sys/contrib/dev/oltr/if_oltr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/contrib/dev/oltr/if_oltr.c b/sys/contrib/dev/oltr/if_oltr.c index dd4f1125efde..c6c0433d6251 100644 --- a/sys/contrib/dev/oltr/if_oltr.c +++ b/sys/contrib/dev/oltr/if_oltr.c @@ -553,12 +553,11 @@ oltr_pci_attach(pcici_t config_id, int unit) s = splimp(); - sc = malloc(sizeof(struct oltr_softc), M_DEVBUF, M_NOWAIT); + sc = malloc(sizeof(struct oltr_softc), M_DEVBUF, M_NOWAIT | M_ZERO); if (sc == NULL) { printf("oltr%d: no memory for softc struct!\n", unit); goto config_failed; } - bzero(sc, sizeof(struct oltr_softc)); sc->unit = unit; sc->state = OL_UNKNOWN; ifp = &sc->arpcom.ac_if; |
