summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2008-06-11 00:17:18 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2008-06-11 00:17:18 +0000
commit0fa00a2fe53b2a24903b635a86b9ad1b61db765b (patch)
tree1023b92dbbeb18d8876653eb22cce1d24e365c59 /sys
parent1a4c4139e952a5772be0006a8814998a2d5a6aa3 (diff)
Don't get the address of the txstats pointers when doing bzero,
just use the actual pointers. Debugged into the early hours of the morning with todd, without being able to use a keyboard with ddb. Fixes a panic seen on his powerbook.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/bwi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/bwi.c b/sys/dev/ic/bwi.c
index 1be7833615a..fd77d56d030 100644
--- a/sys/dev/ic/bwi.c
+++ b/sys/dev/ic/bwi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bwi.c,v 1.75 2008/04/16 18:32:15 damien Exp $ */
+/* $OpenBSD: bwi.c,v 1.76 2008/06/11 00:17:17 jsg Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
@@ -7728,7 +7728,7 @@ bwi_dma_txstats_alloc(struct bwi_softc *sc, uint32_t ctrl_base,
return (error);
}
- bzero(&st->stats_ring, dma_size);
+ bzero(st->stats_ring, dma_size);
st->stats_ring_paddr = st->stats_ring_dmap->dm_segs[0].ds_addr;
/*
@@ -7767,7 +7767,7 @@ bwi_dma_txstats_alloc(struct bwi_softc *sc, uint32_t ctrl_base,
return (error);
}
- bzero(&st->stats, dma_size);
+ bzero(st->stats, dma_size);
st->stats_paddr = st->stats_dmap->dm_segs[0].ds_addr;
st->stats_ctrl_base = ctrl_base;