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/fxp/if_fxp.c | |
parent | b1f3daafde37fa36b819c0649c121d98175a6a2d (diff) |
Notes
Diffstat (limited to 'sys/dev/fxp/if_fxp.c')
-rw-r--r-- | sys/dev/fxp/if_fxp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index 6544f568391b0..13cd0fd6b53d0 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -587,15 +587,14 @@ fxp_attach_common(sc, enaddr) DELAY(10); sc->cbl_base = malloc(sizeof(struct fxp_cb_tx) * FXP_NTXCB, - M_DEVBUF, M_NOWAIT); + M_DEVBUF, M_NOWAIT | M_ZERO); if (sc->cbl_base == NULL) goto fail; - bzero(sc->cbl_base, sizeof(struct fxp_cb_tx) * FXP_NTXCB); - sc->fxp_stats = malloc(sizeof(struct fxp_stats), M_DEVBUF, M_NOWAIT); + sc->fxp_stats = malloc(sizeof(struct fxp_stats), M_DEVBUF, + M_NOWAIT | M_ZERO); if (sc->fxp_stats == NULL) goto fail; - bzero(sc->fxp_stats, sizeof(struct fxp_stats)); sc->mcsp = malloc(sizeof(struct fxp_cb_mcs), M_DEVBUF, M_NOWAIT); if (sc->mcsp == NULL) |