Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Aug 2005 10:09:06 -0700
From:      Maksim Yevmenkin <maksim.yevmenkin@gmail.com>
To:        "Evgueni V. Gavrilov" <aquatique@rusunix.org>
Cc:        freebsd-net@FreeBSD.org, freebsd-current@freebsd.org, glebius@FreeBSD.org
Subject:   Re: [Fwd: assigning an address to ng_fec(4) iface causes panic]
Message-ID:  <bb4a86c70508231009131c50f2@mail.gmail.com>
In-Reply-To: <430B57A7.1050402@savvis.net>
References:  <430B57A7.1050402@savvis.net>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Hello,

please try the attached patch.

> >Description:
>         assigning an address to ng_fec(4) iface causes panic
>         during dumping to dumpdev another panic occurs preventing to identify the source of the first panic and having the crash dump
> 
>         ng_iface creation sequence:
>         mkpeer fec dummy fec
>         msg fec0: add_iface "em0"
>         msg fec0: add_iface "em1"
>         msg fec0: set_mode_mac
>

[-- Attachment #2 --]
--- ng_fec.c.orig	Mon Aug 22 11:42:51 2005
+++ ng_fec.c	Tue Aug 23 10:05:23 2005
@@ -544,8 +544,8 @@
 	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) {
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bb4a86c70508231009131c50f2>