svn commit: r200907 - head/sys/dev/ste
Pyun YongHyeon
yongari at FreeBSD.org
Wed Dec 23 18:28:47 UTC 2009
Author: yongari
Date: Wed Dec 23 18:28:47 2009
New Revision: 200907
URL: http://svn.freebsd.org/changeset/base/200907
Log:
Don't report link status if driver is not running.
Modified:
head/sys/dev/ste/if_ste.c
Modified: head/sys/dev/ste/if_ste.c
==============================================================================
--- head/sys/dev/ste/if_ste.c Wed Dec 23 18:24:22 2009 (r200906)
+++ head/sys/dev/ste/if_ste.c Wed Dec 23 18:28:47 2009 (r200907)
@@ -486,6 +486,10 @@ ste_ifmedia_sts(struct ifnet *ifp, struc
mii = device_get_softc(sc->ste_miibus);
STE_LOCK(sc);
+ if ((ifp->if_flags & IFF_UP) == 0) {
+ STE_UNLOCK(sc);
+ return;
+ }
mii_pollstat(mii);
ifmr->ifm_active = mii->mii_media_active;
ifmr->ifm_status = mii->mii_media_status;
More information about the svn-src-head
mailing list