summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2001-09-10 17:38:54 +0000
committermickey <mickey@openbsd.org>2001-09-10 17:38:54 +0000
commita30e04e805e25518c3f8435017bcd91d3bd58f7c (patch)
treec4822d4296c4b1a19674821c58f157e36e831ae1
parentmove vtophys proto into a port-area in order to remove it for macppc eventually; drahn@ ok (diff)
downloadwireguard-openbsd-a30e04e805e25518c3f8435017bcd91d3bd58f7c.tar.xz
wireguard-openbsd-a30e04e805e25518c3f8435017bcd91d3bd58f7c.zip
fix the bzero size, not that it matters that much
-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 7540fce3e48..f56f545a4c7 100644
--- a/sys/dev/pci/auich.c
+++ b/sys/dev/pci/auich.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auich.c,v 1.14 2001/09/05 03:07:44 provos Exp $ */
+/* $OpenBSD: auich.c,v 1.15 2001/09/10 17:38:54 mickey Exp $ */
/*
* Copyright (c) 2000,2001 Michael Shalayeff
@@ -690,8 +690,7 @@ auich_allocm(v, size, pool, flags)
p = malloc(sizeof(*p), pool, flags);
if (!p)
return NULL;
-
- bzero(p, sizeof(p));
+ bzero(p, sizeof(*p));
p->size = size;
if ((error = bus_dmamem_alloc(sc->dmat, p->size, NBPG, 0, p->segs,