aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mlx
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/mlx
parent99cdf4ccb20964be566b457fdf69729b22b1d3d8 (diff)
Notes
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 3c69dc5d5823..e5271c9db3b0 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) {