diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-01-17 12:43:18 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-01-17 12:43:18 +0000 |
commit | 4b1e420d539f63174687545d0a80d0f59009734f (patch) | |
tree | fed3726a470d248fb9622b023cf63fdba2339d82 | |
parent | cf5cc60a9e549824c74be84cc86129d8c8c7f36c (diff) |
Add splnet around mii_tick() in sk_yukon_tick().
ok kettenis@ dlg@
-rw-r--r-- | sys/dev/pci/if_sk.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c index e405e446693..44ef26a2346 100644 --- a/sys/dev/pci/if_sk.c +++ b/sys/dev/pci/if_sk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sk.c,v 1.142 2007/05/26 16:44:21 reyk Exp $ */ +/* $OpenBSD: if_sk.c,v 1.143 2008/01/17 12:43:17 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -2009,8 +2009,11 @@ sk_yukon_tick(void *xsc_if) { struct sk_if_softc *sc_if = xsc_if; struct mii_data *mii = &sc_if->sk_mii; + int s; + s = splnet(); mii_tick(mii); + splx(s); timeout_add(&sc_if->sk_tick_ch, hz); } |