summaryrefslogtreecommitdiffstats
path: root/sys/dev/mlx
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2000-11-18 15:21:22 +0000
committerdwmalone <dwmalone@FreeBSD.org>2000-11-18 15:21:22 +0000
commit51c82207610826a4ad7bf626560db6021584440d (patch)
tree8da5c68a92019b9e37869775fe3a8353617ec207 /sys/dev/mlx
parent918549eb3151450239d659ae968cb9e68b863bfc (diff)
downloadFreeBSD-src-51c82207610826a4ad7bf626560db6021584440d.zip
FreeBSD-src-51c82207610826a4ad7bf626560db6021584440d.tar.gz
Further use of M_ZERO.
Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Approved by: msmith
Diffstat (limited to 'sys/dev/mlx')
-rw-r--r--sys/dev/mlx/mlx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/mlx/mlx.c b/sys/dev/mlx/mlx.c
index 3c69dc5..e5271c9 100644
--- a/sys/dev/mlx/mlx.c
+++ b/sys/dev/mlx/mlx.c
@@ -2267,9 +2267,8 @@ mlx_alloccmd(struct mlx_softc *sc)
/* allocate a new command buffer? */
if (mc == NULL) {
- mc = (struct mlx_command *)malloc(sizeof(*mc), M_DEVBUF, M_NOWAIT);
+ mc = (struct mlx_command *)malloc(sizeof(*mc), M_DEVBUF, M_NOWAIT | M_ZERO);
if (mc != NULL) {
- bzero(mc, sizeof(*mc));
mc->mc_sc = sc;
error = bus_dmamap_create(sc->mlx_buffer_dmat, 0, &mc->mc_dmamap);
if (error) {
OpenPOWER on IntegriCloud