Add missing driver lock in media status handler.

This commit is contained in:
Pyun YongHyeon 2011-10-17 19:58:34 +00:00
parent e9e549ef70
commit 0ae9f6a9f3

View File

@ -542,9 +542,11 @@ et_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr)
struct et_softc *sc = ifp->if_softc;
struct mii_data *mii = device_get_softc(sc->sc_miibus);
ET_LOCK(sc);
mii_pollstat(mii);
ifmr->ifm_active = mii->mii_media_active;
ifmr->ifm_status = mii->mii_media_status;
ET_UNLOCK(sc);
}
static void