summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-09-05 17:27:54 +0000
committerrwatson <rwatson@FreeBSD.org>2004-09-05 17:27:54 +0000
commitd8beb8f72bea3807fa2992f5acc45c7581379094 (patch)
tree12419e6336aeff0e9b3a7ec4b292b26af82c3696
parent5715c39b2db8a09d764286deabc18f9f1c256390 (diff)
downloadFreeBSD-src-d8beb8f72bea3807fa2992f5acc45c7581379094.zip
FreeBSD-src-d8beb8f72bea3807fa2992f5acc45c7581379094.tar.gz
Call callout_init() on nd6_slowtimo_ch before setting it going; otherwise,
the flags field will be improperly initialized resulting in inconsistent operation (sometimes with Giant, sometimes without, et al). RELENG_5 candidate.
-rw-r--r--sys/netinet6/nd6.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index 66b75ec..2461fc8 100644
--- a/sys/netinet6/nd6.c
+++ b/sys/netinet6/nd6.c
@@ -134,6 +134,7 @@ nd6_init()
nd6_init_done = 1;
/* start timer */
+ callout_init(&nd6_slowtimo_ch, 0);
callout_reset(&nd6_slowtimo_ch, ND6_SLOWTIMER_INTERVAL * hz,
nd6_slowtimo, NULL);
}
OpenPOWER on IntegriCloud