aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/aac
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2000-11-18 15:21:22 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2000-11-18 15:21:22 +0000
commitca89ee278e1d0cff6ce3d52d53a7b004bf093f40 (patch)
tree0c3ddb8a43b4e4275b28bb051fdf33aaa6ee5d08 /sys/dev/aac
parent99cdf4ccb20964be566b457fdf69729b22b1d3d8 (diff)
Notes
Diffstat (limited to 'sys/dev/aac')
-rw-r--r--sys/dev/aac/aac.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/aac/aac.c b/sys/dev/aac/aac.c
index 87cc9aefe76e..19b57e90c078 100644
--- a/sys/dev/aac/aac.c
+++ b/sys/dev/aac/aac.c
@@ -920,10 +920,9 @@ aac_alloc_command_cluster(struct aac_softc *sc)
debug_called(1);
- cmc = malloc(sizeof(struct aac_command_cluster), M_DEVBUF, M_NOWAIT);
+ cmc = malloc(sizeof(struct aac_command_cluster), M_DEVBUF,
+ M_NOWAIT | M_ZERO);
if (cmc != NULL) {
- bzero(cmc, sizeof(*cmc));
-
/* allocate the FIB cluster in DMAable memory and load it */
if (bus_dmamem_alloc(sc->aac_fib_dmat, (void **)&cmc->cmc_fibs, BUS_DMA_NOWAIT, &cmc->cmc_fibmap)) {
free(cmc, M_DEVBUF);