diff options
| author | Pyun YongHyeon <yongari@FreeBSD.org> | 2010-09-01 22:16:25 +0000 |
|---|---|---|
| committer | Pyun YongHyeon <yongari@FreeBSD.org> | 2010-09-01 22:16:25 +0000 |
| commit | d199ef7e0d935d1ee6e6b3a23f4157e47021d714 (patch) | |
| tree | 6e2b90100c1117921088b8f624195aabb5aca9ea /sys/dev/sis | |
| parent | ae9e8d4935b6193d752d083057791ba856d04ed2 (diff) | |
Notes
Diffstat (limited to 'sys/dev/sis')
| -rw-r--r-- | sys/dev/sis/if_sis.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/sis/if_sis.c b/sys/dev/sis/if_sis.c index cecffe2f32f7..6e9b8dbcc209 100644 --- a/sys/dev/sis/if_sis.c +++ b/sys/dev/sis/if_sis.c @@ -1741,6 +1741,7 @@ sis_poll(struct ifnet *ifp, enum poll_cmd cmd, int count) if (status & SIS_ISR_SYSERR) { sis_reset(sc); + ifp->if_drv_flags &= ~IFF_DRV_RUNNING; sis_initl(sc); } } @@ -1796,6 +1797,7 @@ sis_intr(void *arg) if (status & SIS_ISR_SYSERR) { sis_reset(sc); + ifp->if_drv_flags &= ~IFF_DRV_RUNNING; sis_initl(sc); SIS_UNLOCK(sc); return; @@ -1971,6 +1973,9 @@ sis_initl(struct sis_softc *sc) SIS_LOCK_ASSERT(sc); + if ((ifp->if_drv_flags & IFF_DRV_RUNNING) != 0) + return; + /* * Cancel pending I/O and free all RX/TX buffers. */ |
