From owner-freebsd-current Tue Jul 25 2:48:32 2000 Delivered-To: freebsd-current@freebsd.org Received: from tasogare.imasy.or.jp (tasogare.imasy.or.jp [202.227.24.5]) by hub.freebsd.org (Postfix) with ESMTP id 717F137BAF8; Tue, 25 Jul 2000 02:48:24 -0700 (PDT) (envelope-from iwasaki@jp.FreeBSD.org) Received: from localhost (iwasaki.imasy.or.jp [202.227.24.92]) by tasogare.imasy.or.jp (8.10.1+3.3W/3.7W-tasogare/smtpfeed 1.07) with ESMTP id e6P9mJp09644; Tue, 25 Jul 2000 18:48:19 +0900 (JST) (envelope-from 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) 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> X-Mailer: Mew version 1.94.1 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000725184817P.iwasaki@jp.FreeBSD.org> Date: Tue, 25 Jul 2000 18:48:17 +0900 From: Mitsuru IWASAKI X-Dispatcher: imput version 20000228(IM140) Lines: 34 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [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