DragonFly BSD
DragonFly kernel List (threaded) for 2004-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Got the crash dump... now what?


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 17 Dec 2004 13:17:01 -0800 (PST)

:Yes.  Shutting down or rebooting.  Sorry I forgot to mention that detail.
:
:jm

    That's what I thought.  Ok, this patch should stop the panics from 
    occuring, I'll commit it over the weekend.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>

Index: ip_input.c
===================================================================
RCS file: /cvs/src/sys/netinet/ip_input.c,v
retrieving revision 1.37
diff -u -r1.37 ip_input.c
--- ip_input.c	30 Nov 2004 19:21:26 -0000	1.37
+++ ip_input.c	17 Dec 2004 21:16:04 -0000
@@ -747,6 +747,8 @@
 	 */
 	if (m->m_pkthdr.rcvif->if_flags & IFF_BROADCAST) {
 		TAILQ_FOREACH(ifa, &m->m_pkthdr.rcvif->if_addrhead, ifa_link) {
+			if (ifa->ifa_addr == NULL) /* shutdown/startup race */
+				continue;
 			if (ifa->ifa_addr->sa_family != AF_INET)
 				continue;
 			ia = ifatoia(ifa);



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]