Acquire vr lock before entering vr_setcfg() in vr_miibus_statchg(),

since vr_setcfg() expects it.

Reported by:	Mike Bristow <mike@urgle.com>
This commit is contained in:
Robert Watson 2004-08-07 19:40:19 +00:00
parent 8095e9d82b
commit 0dab4d146c
2 changed files with 4 additions and 0 deletions

View file

@ -503,7 +503,9 @@ vr_miibus_statchg(device_t dev)
struct vr_softc *sc = device_get_softc(dev);
mii = device_get_softc(sc->vr_miibus);
VR_LOCK(sc);
vr_setcfg(sc, mii->mii_media_active);
VR_UNLOCK(sc);
}
/*

View file

@ -503,7 +503,9 @@ vr_miibus_statchg(device_t dev)
struct vr_softc *sc = device_get_softc(dev);
mii = device_get_softc(sc->vr_miibus);
VR_LOCK(sc);
vr_setcfg(sc, mii->mii_media_active);
VR_UNLOCK(sc);
}
/*