mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
8095e9d82b
commit
0dab4d146c
2 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue