From owner-svn-src-head@FreeBSD.ORG Mon Dec 8 01:44:18 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD6DD1065675; Mon, 8 Dec 2008 01:44:18 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id BC3BF8FC1A; Mon, 8 Dec 2008 01:44:18 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mB81iI2M041698; Mon, 8 Dec 2008 01:44:18 GMT (envelope-from yongari@svn.freebsd.org) Received: (from yongari@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mB81iIF0041697; Mon, 8 Dec 2008 01:44:18 GMT (envelope-from yongari@svn.freebsd.org) Message-Id: <200812080144.mB81iIF0041697@svn.freebsd.org> From: Pyun YongHyeon Date: Mon, 8 Dec 2008 01:44:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r185752 - head/sys/dev/re X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2008 01:44:18 -0000 Author: yongari Date: Mon Dec 8 01:44:18 2008 New Revision: 185752 URL: http://svn.freebsd.org/changeset/base/185752 Log: Make sure to return the result of meida change request. Previously it used to return success regardless of the result. Modified: head/sys/dev/re/if_re.c Modified: head/sys/dev/re/if_re.c ============================================================================== --- head/sys/dev/re/if_re.c Mon Dec 8 00:28:21 2008 (r185751) +++ head/sys/dev/re/if_re.c Mon Dec 8 01:44:18 2008 (r185752) @@ -2652,14 +2652,15 @@ re_ifmedia_upd(struct ifnet *ifp) { struct rl_softc *sc; struct mii_data *mii; + int error; sc = ifp->if_softc; mii = device_get_softc(sc->rl_miibus); RL_LOCK(sc); - mii_mediachg(mii); + error = mii_mediachg(mii); RL_UNLOCK(sc); - return (0); + return (error); } /*