diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2000-10-29 16:29:05 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2000-10-29 16:29:05 +0000 |
commit | 1978e2e6ea40985b076aa238f3190a54f9837413 (patch) | |
tree | 759b90ce4f5c4e9b4f91229f4a8c94c6796dc412 /sys/dev/aha | |
parent | 13581bd748ff51a32a5893ce264830957a49a2ad (diff) | |
download | FreeBSD-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.c | 3 |
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); |