Author: imp Date: Sun Mar 1 21:41:33 2015 New Revision: 279500 URL: https://svnweb.freebsd.org/changeset/base/279500
Log: Unlock the main lock before returning rather than after to eliminate dead code that shouldn't have been dead. Reported by: Maxime Villard Modified: head/sys/dev/ed/if_ed_pccard.c Modified: head/sys/dev/ed/if_ed_pccard.c ============================================================================== --- head/sys/dev/ed/if_ed_pccard.c Sun Mar 1 21:24:19 2015 (r279499) +++ head/sys/dev/ed/if_ed_pccard.c Sun Mar 1 21:41:33 2015 (r279500) @@ -1172,8 +1172,8 @@ ed_ifmedia_sts(struct ifnet *ifp, struct sc = ifp->if_softc; ED_LOCK(sc); if (sc->miibus == NULL) { - return; ED_UNLOCK(sc); + return; } mii = device_get_softc(sc->miibus); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"