diff options
author | David S. Miller <davem@davemloft.net> | 2012-07-19 08:46:59 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-19 08:46:59 -0700 |
commit | 7fed84f622ec2696087301199c2952b85e0cc3b4 (patch) | |
tree | f0ab5567558ed961d287063f7e7a841f389d6dee /net/ipv4 | |
parent | 1eb8c695bda92ccaec30e9a3351e37a1896da54f (diff) |
ipv4: Fix time difference calculation in rt_bind_exception().
Reported-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index f67e70236728..2c25581bf25c 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; |