summaryrefslogtreecommitdiffstats
path: root/sys/dev/aha
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2000-10-29 16:29:05 +0000
committerdwmalone <dwmalone@FreeBSD.org>2000-10-29 16:29:05 +0000
commit1978e2e6ea40985b076aa238f3190a54f9837413 (patch)
tree759b90ce4f5c4e9b4f91229f4a8c94c6796dc412 /sys/dev/aha
parent13581bd748ff51a32a5893ce264830957a49a2ad (diff)
downloadFreeBSD-src-1978e2e6ea40985b076aa238f3190a54f9837413.zip
FreeBSD-src-1978e2e6ea40985b076aa238f3190a54f9837413.tar.gz
Make a few more mallocs use M_ZERO.
Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Approved by: imp
Diffstat (limited to 'sys/dev/aha')
-rw-r--r--sys/dev/aha/aha.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/aha/aha.c b/sys/dev/aha/aha.c
index be063d0..3d7b396 100644
--- a/sys/dev/aha/aha.c
+++ b/sys/dev/aha/aha.c
@@ -223,12 +223,11 @@ aha_alloc(int unit, bus_space_tag_t tag, bus_space_handle_t bsh)
}
}
- aha = malloc(sizeof(struct aha_softc), M_DEVBUF, M_NOWAIT);
+ aha = malloc(sizeof(struct aha_softc), M_DEVBUF, M_NOWAIT | M_ZERO);
if (!aha) {
printf("aha%d: cannot malloc!\n", unit);
return NULL;
}
- bzero(aha, sizeof(struct aha_softc));
SLIST_INIT(&aha->free_aha_ccbs);
LIST_INIT(&aha->pending_ccbs);
SLIST_INIT(&aha->sg_maps);
OpenPOWER on IntegriCloud