svn commit: r279500 - head/sys/dev/ed

Warner Losh imp at FreeBSD.org
Sun Mar 1 21:41:34 UTC 2015


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);


More information about the svn-src-head mailing list