mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-21 15:45:02 +00:00
Close a theoretical race: By the time the watchdog comes around
the interface may have been stopped, so we should not restart it.
This commit is contained in:
parent
86cb007f9f
commit
c884a1dc23
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139797
@ -2235,11 +2235,15 @@ sis_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
|
||||
static void
|
||||
sis_watchdog(struct ifnet *ifp)
|
||||
{
|
||||
struct sis_softc *sc;
|
||||
struct sis_softc *sc;
|
||||
|
||||
sc = ifp->if_softc;
|
||||
|
||||
SIS_LOCK(sc);
|
||||
if (sc->sis_stopped) {
|
||||
SIS_UNLOCK(sc);
|
||||
return;
|
||||
}
|
||||
|
||||
ifp->if_oerrors++;
|
||||
printf("sis%d: watchdog timeout\n", sc->sis_unit);
|
||||
|
Loading…
Reference in New Issue
Block a user