Date: Mon, 17 Oct 2011 19:58:34 +0000 (UTC) From: Pyun YongHyeon <yongari@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r226480 - head/sys/dev/et Message-ID: <201110171958.p9HJwYZA038384@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yongari Date: Mon Oct 17 19:58:34 2011 New Revision: 226480 URL: http://svn.freebsd.org/changeset/base/226480 Log: Add missing driver lock in media status handler. Modified: head/sys/dev/et/if_et.c Modified: head/sys/dev/et/if_et.c ============================================================================== --- head/sys/dev/et/if_et.c Mon Oct 17 19:51:38 2011 (r226479) +++ head/sys/dev/et/if_et.c Mon Oct 17 19:58:34 2011 (r226480) @@ -542,9 +542,11 @@ et_ifmedia_sts(struct ifnet *ifp, struct 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110171958.p9HJwYZA038384>