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/ccd | |
parent | b1f3daafde37fa36b819c0649c121d98175a6a2d (diff) | |
download | src-7cc0979fd64b721c92c3dd4a8688b56e15c9a5f9.tar.gz src-7cc0979fd64b721c92c3dd4a8688b56e15c9a5f9.zip |
Convert more malloc+bzero to malloc+M_ZERO.
Submitted by: josh@zipperup.org
Submitted by: Robert Drehmel <robd@gmx.net>
Notes
Notes:
svn path=/head/; revision=69781
Diffstat (limited to 'sys/dev/ccd')
-rw-r--r-- | sys/dev/ccd/ccd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c index 7b06a8914856..cdd07ceb8191 100644 --- a/sys/dev/ccd/ccd.c +++ b/sys/dev/ccd/ccd.c @@ -598,8 +598,8 @@ ccdinterleave(cs, unit) * Chances are this is too big, but we don't care. */ size = (cs->sc_nccdisks + 1) * sizeof(struct ccdiinfo); - cs->sc_itable = (struct ccdiinfo *)malloc(size, M_DEVBUF, M_WAITOK); - bzero((caddr_t)cs->sc_itable, size); + cs->sc_itable = (struct ccdiinfo *)malloc(size, M_DEVBUF, + M_WAITOK | M_ZERO); /* * Trivial case: no interleave (actually interleave of disk size). |