PERFORCE change 130920 for review

Qing Li qingli at FreeBSD.org
Fri Dec 14 17:17:15 PST 2007


http://perforce.freebsd.org/chv.cgi?CH=130920

Change 130920 by qingli at FreeBSD-newarp on 2007/12/15 01:17:05

	
	Forgot to initialize the callout in a newly created nd6 entry, causing the kernel to crash
	when callout_reset() is called on that entry for transition to the STALE state.

Affected files ...

.. //depot/projects/arp-v2/src/sys/netinet6/nd6.c#3 edit

Differences ...

==== //depot/projects/arp-v2/src/sys/netinet6/nd6.c#3 (text+ko) ====

@@ -804,8 +804,10 @@
 	if (create)
 		flags |= LLE_CREATE;      
 	ln = lla_lookup(ifp, flags, (struct sockaddr *)&sin6);
-	if ((ln != NULL) && (flags & LLE_CREATE))
+	if ((ln != NULL) && (flags & LLE_CREATE)) {
 		ln->ln_state = ND6_LLINFO_NOSTATE;
+		callout_init(&ln->ln_timer_ch, 0);
+	}
 	return (ln);
 }
 


More information about the p4-projects mailing list