Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jul 2000 18:48:17 +0900
From:      Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
To:        ume@freebsd.org
Cc:        iwasaki@jp.FreeBSD.org, imp@village.org, jkh@FreeBSD.org, current@freebsd.org, mobile@freebsd.org
Subject:   multicast + PCCard NIC = kernel panic? (was Re: small bug in pcic.c)
Message-ID:  <20000725184817P.iwasaki@jp.FreeBSD.org>
In-Reply-To: <200007250849.e6P8n2t00981@plum.ssr.bisd.hitachi.co.jp>
References:  <20000725055007J.iwasaki@jp.FreeBSD.org> <200007250849.e6P8n2t00981@plum.ssr.bisd.hitachi.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
[CC'ed -current and -mobile]

> BTW, there is one more problem during detach the pccard nic.  When I
> detach my pccard nic, my kernel is panic.  I tried this with Melco
> Airconnect WLI-PCM-L11 and COREGA FastEther PCC-TX, and it occured
> with either card.
> I made a quick hack to avoid this problem.  I don't know if this fix
> is correct.
> I sent it to -current, -net and -mobile.  But, my message seems
> disappeared.  I don't know why.

This is a critical problem especially for IPv6 laptop users right?
The patch seems good enough for emergency workaround, If we don't have
enough time for the regular reviewing process before 4.1R out,
however, you are the right person to commit the patch since I know
that you've tested enough it for days :-)

> Index: sys/net/rtsock.c
> diff -u sys/net/rtsock.c.orig sys/net/rtsock.c
> --- sys/net/rtsock.c.orig	Sun Feb 13 12:31:56 2000
> +++ sys/net/rtsock.c	Sat Jul 22 08:53:16 2000
> @@ -828,7 +828,10 @@
>  
>  	bzero((caddr_t)&info, sizeof(info));
>  	ifaaddr = ifma->ifma_addr;
> -	ifpaddr = ifp->if_addrhead.tqh_first->ifa_addr;
> +	if (ifp && ifp->if_addrhead.tqh_first)
> +		ifpaddr = ifp->if_addrhead.tqh_first->ifa_addr;
> +	else
> +		ifpaddr = NULL;
>  	/*
>  	 * If a link-layer address is present, present it as a ``gateway''
>  	 * (similarly to how ARP entries, e.g., are presented).



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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