summaryrefslogtreecommitdiff
path: root/sys/dev/ic/rtl81x9.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-01-22 09:19:12 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-01-22 09:19:12 +0000
commitf0652a1bf03361f14799b2b3b0eade445ec337f2 (patch)
treea5a743dde10f9d7991fa46b2cc2e742581fe0bd8 /sys/dev/ic/rtl81x9.c
parent22375ad07d247fbf7a776746cb59f138f4b97332 (diff)
Add splnet around mii_tick() in rl_tick().
ok dlg@
Diffstat (limited to 'sys/dev/ic/rtl81x9.c')
-rw-r--r--sys/dev/ic/rtl81x9.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c
index e283e876347..47f2e3e033d 100644
--- a/sys/dev/ic/rtl81x9.c
+++ b/sys/dev/ic/rtl81x9.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtl81x9.c,v 1.56 2007/05/08 18:49:32 deraadt Exp $ */
+/* $OpenBSD: rtl81x9.c,v 1.57 2008/01/22 09:19:11 brad Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -1470,8 +1470,11 @@ rl_tick(v)
void *v;
{
struct rl_softc *sc = v;
+ int s;
+ s = splnet();
mii_tick(&sc->sc_mii);
+ splx(s);
timeout_add(&sc->sc_tick_tmo, hz);
}