From a8fb9abe899a9599f5f74616a31642cbc8b1b089 Mon Sep 17 00:00:00 2001 From: emax Date: Thu, 25 Aug 2005 17:00:02 +0000 Subject: 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 --- sys/netgraph/ng_fec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/netgraph/ng_fec.c b/sys/netgraph/ng_fec.c index 9cb1623..c162453 100644 --- a/sys/netgraph/ng_fec.c +++ b/sys/netgraph/ng_fec.c @@ -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 -- cgit v1.1