Skip to contentSkip to conversation

: rif_timer not initialized properly

TOKENRING Applied Eric Dumazet 2 participants 2 messages Jan 14, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
net/802/tr.c +1 -1
index a2bd0f2..1e115e5 100644
@@ -642,7 +642,7 @@ struct net_device *alloc_trdev(int sizeof_priv)
 static int __init rif_init(void)
 {
 	init_timer(&rif_timer);
-	rif_timer.expires  = sysctl_tr_rif_timeout;
+	rif_timer.expires  = jiffies + sysctl_tr_rif_timeout;
 	rif_timer.data     = 0L;
 	rif_timer.function = rif_check_expire;
 	add_timer(&rif_timer);