From 0fa00a2fe53b2a24903b635a86b9ad1b61db765b Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Wed, 11 Jun 2008 00:17:18 +0000 Subject: 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. --- sys/dev/ic/bwi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/ic') 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; -- cgit v1.2.3