svn commit: r200552 - head/sys/dev/vge

Pyun YongHyeon yongari at FreeBSD.org
Mon Dec 14 14:23:06 PST 2009


Author: yongari
Date: Mon Dec 14 22:23:06 2009
New Revision: 200552
URL: http://svn.freebsd.org/changeset/base/200552

Log:
  Report media change result to caller instead of returning success
  without regard to the result.

Modified:
  head/sys/dev/vge/if_vge.c

Modified: head/sys/dev/vge/if_vge.c
==============================================================================
--- head/sys/dev/vge/if_vge.c	Mon Dec 14 22:20:05 2009	(r200551)
+++ head/sys/dev/vge/if_vge.c	Mon Dec 14 22:23:06 2009	(r200552)
@@ -2153,14 +2153,15 @@ vge_ifmedia_upd(struct ifnet *ifp)
 {
 	struct vge_softc *sc;
 	struct mii_data *mii;
+	int error;
 
 	sc = ifp->if_softc;
 	VGE_LOCK(sc);
 	mii = device_get_softc(sc->vge_miibus);
-	mii_mediachg(mii);
+	error = mii_mediachg(mii);
 	VGE_UNLOCK(sc);
 
-	return (0);
+	return (error);
 }
 
 /*


More information about the svn-src-head mailing list