https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244247

l...@donnerhacke.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |l...@donnerhacke.de

--- Comment #3 from l...@donnerhacke.de ---
static void
ng_eiface_mediastatus(struct ifnet *ifp, struct ifmediareq *ifmr)
{
        const priv_p priv = (priv_p)ifp->if_softc;
        struct ifmedia *ifm = &priv->media;

-->     if (ifm->ifm_cur->ifm_media == (IFM_ETHER | IFM_AUTO) &&
            (priv->link_status & IFM_ACTIVE))
                ifmr->ifm_active = IFM_ETHER | IFM_1000_T | IFM_FDX;
        else
                ifmr->ifm_active = ifm->ifm_cur->ifm_media;
        ifmr->ifm_status = priv->link_status;

        return;
}

May I ask you to compile the test system with NETGRAPH_DEBUG?
This will prevent the netgraph system from freeing all allocated memory.

I just want to make sure, that we do have a problem with the netgraph
framework, not with a race condition within ng_eiface.

If you are on this path, may you please add INVARIANT_SUPPORT and INVARIANTS?
This will catch several types of errors before they might happen.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to