Add missing driver lock in media status handler.
This commit is contained in:
parent
e9e549ef70
commit
0ae9f6a9f3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user