diff options
author | emax <emax@FreeBSD.org> | 2005-08-25 17:00:02 +0000 |
---|---|---|
committer | emax <emax@FreeBSD.org> | 2005-08-25 17:00:02 +0000 |
commit | a8fb9abe899a9599f5f74616a31642cbc8b1b089 (patch) | |
tree | b753c5c9b3b8ec44b7d11b6a09c2fd391054c2e9 | |
parent | 0ffb7bad2ead0311621edc57a240804d46db5312 (diff) | |
download | FreeBSD-src-a8fb9abe899a9599f5f74616a31642cbc8b1b089.zip FreeBSD-src-a8fb9abe899a9599f5f74616a31642cbc8b1b089.tar.gz |
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
-rw-r--r-- | sys/netgraph/ng_fec.c | 6 |
1 files 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 |