From: Nicolas Dichtel Date: Thu, 27 Sep 2012 04:11:00 +0000 (+0000) Subject: inetpeer: fix token initialization X-Git-Tag: v3.6~5^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc9259a8bae9e814fc1f775a1b3effa13e6ad330;p=pandora-kernel.git inetpeer: fix token initialization When jiffies wraps around (for example, 5 minutes after the boot, see INITIAL_JIFFIES) and peer has just been created, now - peer->rate_last can be < XRLIM_BURST_FACTOR * timeout, so token is not set to the maximum value, thus some icmp packets can be unexpectedly dropped. Fix this case by initializing last_rate to 60 seconds in the past. Signed-off-by: Nicolas Dichtel Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed