From 0be8f80357bc15552c8a43390ca9cd3df1cdd1f4 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Tue, 6 May 2003 02:00:01 +0000 Subject: [PATCH] Don't call timeout() in sis_tick(), this is done earlier by mii_tick(), and it leads to a panic at unload time, as we own 2 instances of callout and untimeout() only one. Will I'm there, remove a call to callout_handler_init(), one is enough. Reviewed by: wpaul --- sys/pci/if_sis.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c index bb502f498287..62b4b508f0ae 100644 --- a/sys/pci/if_sis.c +++ b/sys/pci/if_sis.c @@ -1374,8 +1374,6 @@ sis_attach(dev) goto fail; } - callout_handle_init(&sc->sis_stat_ch); - /* * Call MI attach routine. */ @@ -1748,8 +1746,6 @@ sis_tick(xsc) sis_start(ifp); } - sc->sis_stat_ch = timeout(sis_tick, sc, hz); - SIS_UNLOCK(sc); return;