Make sure ng_fec_init() uses the same calling convention as the rest of

the code, i.e. ng_fec_init() is called with the ifp->if_softc pointer and
NOT with the ifp pointer.

PR:		kern/85239
Reviewed by:	brooks
MFC after:	1 day
This commit is contained in:
Maksim Yevmenkin 2005-08-25 17:00:02 +00:00
parent 071e98cbeb
commit f41317de66
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149462

View File

@ -544,8 +544,8 @@ ng_fec_init(void *arg)
struct ifnet *ifp, *bifp;
struct ng_fec_portlist *p;
ifp = arg;
priv = ifp->if_softc;
priv = arg;
ifp = priv->ifp;
b = &priv->fec_bundle;
if (b->fec_ifcnt == 1 || b->fec_ifcnt == 3) {
@ -715,7 +715,7 @@ ng_fec_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
}
ifp->if_drv_flags &= ~(IFF_DRV_OACTIVE);
ifp->if_drv_flags |= IFF_DRV_RUNNING;
ng_fec_init(ifp);
ng_fec_init(priv);
}
/*
* Bubble down changes in promisc mode to