summaryrefslogtreecommitdiff
path: root/sys/dev/pci/auich.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2007-09-17 00:50:47 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2007-09-17 00:50:47 +0000
commit7787a4acd7b5bace98cf0236c135ca371b07e417 (patch)
treed9f89ddb889547b4eb5e1038c93d6983e127af2c /sys/dev/pci/auich.c
parentdee76242343fdb431ba6179e83aaaae3ceb4030a (diff)
Some bzero() -> M_ZERO. ok jakemsr@
Diffstat (limited to 'sys/dev/pci/auich.c')
-rw-r--r--sys/dev/pci/auich.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/auich.c b/sys/dev/pci/auich.c
index 1f22577d255..4bb9c67d783 100644
--- a/sys/dev/pci/auich.c
+++ b/sys/dev/pci/auich.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auich.c,v 1.64 2007/08/02 07:43:41 jakemsr Exp $ */
+/* $OpenBSD: auich.c,v 1.65 2007/09/17 00:50:46 krw Exp $ */
/*
* Copyright (c) 2000,2001 Michael Shalayeff
@@ -1066,10 +1066,9 @@ auich_allocm(v, direction, size, pool, flags)
if (size > AUICH_DMALIST_MAX * AUICH_DMASEG_MAX)
return NULL;
- p = malloc(sizeof(*p), pool, flags);
+ p = malloc(sizeof(*p), pool, flags | M_ZERO);
if (!p)
return NULL;
- bzero(p, sizeof(*p));
p->size = size;
if ((error = bus_dmamem_alloc(sc->dmat, p->size, NBPG, 0, p->segs,