mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Report media change result to caller instead of returning success
without regard to the result.
This commit is contained in:
parent
e7b2d9b80f
commit
6f53098372
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue