summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-05-14 04:12:58 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-05-14 04:12:58 +0000
commit2aa4a915950bec32c6d8ff1cafcb4826c36baf51 (patch)
tree8730e017e330ab72062fc621d329b1c6a1b8f209
parentecc41c131b99a4c4854741e2e4e586139dcfecdf (diff)
Add missing splnet around mii_tick().
ok dlg@
-rw-r--r--sys/dev/pci/if_bce.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/if_bce.c b/sys/dev/pci/if_bce.c
index 7d9b8555c42..e1cfa3793d1 100644
--- a/sys/dev/pci/if_bce.c
+++ b/sys/dev/pci/if_bce.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bce.c,v 1.22 2008/04/02 06:49:59 brad Exp $ */
+/* $OpenBSD: if_bce.c,v 1.23 2008/05/14 04:12:57 brad Exp $ */
/* $NetBSD: if_bce.c,v 1.3 2003/09/29 01:53:02 mrg Exp $ */
/*
@@ -1494,9 +1494,11 @@ void
bce_tick(void *v)
{
struct bce_softc *sc = v;
+ int s;
- /* Tick the MII. */
+ s = splnet();
mii_tick(&sc->bce_mii);
+ splx(s);
timeout_add(&sc->bce_timeout, hz);
}