ral_init() takes a struct ral_softc as parameter not a struct ifnet.
Fixes a panic that occured when setting the interface parameters while the interface was associated. Approved by: re (scottl)
This commit is contained in:
parent
d732ff5ca2
commit
9530c73e6c
@ -928,7 +928,7 @@ ral_media_change(struct ifnet *ifp)
|
||||
return error;
|
||||
|
||||
if ((ifp->if_flags & (IFF_UP | IFF_RUNNING)) == (IFF_UP | IFF_RUNNING))
|
||||
ral_init(ifp);
|
||||
ral_init(sc);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -685,7 +685,7 @@ ural_media_change(struct ifnet *ifp)
|
||||
}
|
||||
|
||||
if ((ifp->if_flags & (IFF_UP | IFF_RUNNING)) == (IFF_UP | IFF_RUNNING))
|
||||
ural_init(ifp);
|
||||
ural_init(sc);
|
||||
|
||||
RAL_UNLOCK(sc);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user