mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
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
This commit is contained in:
parent
05ca3441c0
commit
0be8f80357
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114770
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user