Make sure to return the result of meida change request.
Previously it used to return success regardless of the result.
This commit is contained in:
parent
609ff41f16
commit
6f0f9b12fa
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user