summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2009-12-14 22:23:06 +0000
committeryongari <yongari@FreeBSD.org>2009-12-14 22:23:06 +0000
commitb326f2699c099ff360442f8ad4751d4d443c1ef6 (patch)
tree46ebc5ac82d1a8066ff8d64e9afbfca7e08914bb
parent34ca1e0cd870710e72330408187fd697b3137aea (diff)
downloadFreeBSD-src-b326f2699c099ff360442f8ad4751d4d443c1ef6.zip
FreeBSD-src-b326f2699c099ff360442f8ad4751d4d443c1ef6.tar.gz
Report media change result to caller instead of returning success
without regard to the result.
-rw-r--r--sys/dev/vge/if_vge.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/vge/if_vge.c b/sys/dev/vge/if_vge.c
index 2ae7584..39fdd5a 100644
--- a/sys/dev/vge/if_vge.c
+++ b/sys/dev/vge/if_vge.c
@@ -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);
}
/*
OpenPOWER on IntegriCloud