summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_wb.c
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1999-08-31 05:30:13 +0000
committerwpaul <wpaul@FreeBSD.org>1999-08-31 05:30:13 +0000
commitc7bb1c41cf4ba8e9c453e5298573f1ca5e65f5dc (patch)
treef99f95f621cd2fb9d9876ab07f6c9854947d420c /sys/pci/if_wb.c
parentae3a819c799c2cb57d7ea851361cc8afcfef8d65 (diff)
downloadFreeBSD-src-c7bb1c41cf4ba8e9c453e5298573f1ca5e65f5dc.zip
FreeBSD-src-c7bb1c41cf4ba8e9c453e5298573f1ca5e65f5dc.tar.gz
Add splimp protection to wb_tick().
Diffstat (limited to 'sys/pci/if_wb.c')
-rw-r--r--sys/pci/if_wb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/pci/if_wb.c b/sys/pci/if_wb.c
index 8e3b969..746e20d 100644
--- a/sys/pci/if_wb.c
+++ b/sys/pci/if_wb.c
@@ -1429,6 +1429,9 @@ static void wb_tick(xsc)
{
struct wb_softc *sc;
struct mii_data *mii;
+ int s;
+
+ s = splimp();
sc = xsc;
mii = device_get_softc(sc->wb_miibus);
@@ -1437,6 +1440,8 @@ static void wb_tick(xsc)
sc->wb_stat_ch = timeout(wb_tick, sc, hz);
+ splx(s);
+
return;
}
OpenPOWER on IntegriCloud