From: David S. Miller Date: Thu, 19 Jul 2012 15:46:59 +0000 (-0700) Subject: ipv4: Fix time difference calculation in rt_bind_exception(). X-Git-Tag: upstream/snapshot3+hdmi~6997^2~81 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7fed84f622ec2696087301199c2952b85e0cc3b4;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ipv4: Fix time difference calculation in rt_bind_exception(). Reported-by: Steffen Klassert Signed-off-by: David S. Miller --- diff --git a/net/ipv4/route.c b/net/ipv4/route.c index f67e702..2c25581 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -1907,7 +1907,7 @@ static void rt_bind_exception(struct rtable *rt, struct fib_nh *nh, __be32 daddr if (fnhe->fnhe_daddr == daddr) { if (fnhe->fnhe_pmtu) { unsigned long expires = fnhe->fnhe_expires; - unsigned long diff = jiffies - expires; + unsigned long diff = expires - jiffies; if (time_before(jiffies, expires)) { rt->rt_pmtu = fnhe->fnhe_pmtu;