Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Mar 2015 21:41:33 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r279500 - head/sys/dev/ed
Message-ID:  <201503012141.t21LfXvv093245@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503012141.t21LfXvv093245>