summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-08-07 19:40:19 +0000
committerrwatson <rwatson@FreeBSD.org>2004-08-07 19:40:19 +0000
commitc6a109c23068973c4f6e541b901282ff9da789bd (patch)
treec18b581d69d4d3a3cc8b23403f7e194c152ac138 /sys/pci
parent0457e08c653c231b3bd5e744be22bb94567aff37 (diff)
downloadFreeBSD-src-c6a109c23068973c4f6e541b901282ff9da789bd.zip
FreeBSD-src-c6a109c23068973c4f6e541b901282ff9da789bd.tar.gz
Acquire vr lock before entering vr_setcfg() in vr_miibus_statchg(),
since vr_setcfg() expects it. Reported by: Mike Bristow <mike@urgle.com>
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/if_vr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/pci/if_vr.c b/sys/pci/if_vr.c
index a3320a6..9f7025b 100644
--- a/sys/pci/if_vr.c
+++ b/sys/pci/if_vr.c
@@ -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);
}
/*
OpenPOWER on IntegriCloud