diff options
author | Julian Anastasov <ja@ssi.bg> | 2012-07-19 16:02:45 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-19 16:01:44 -0400 |
commit | f31fd383821555cbd77ee83e17837f7060825395 (patch) | |
tree | 3c4122f2c84c3d4a9a1c14a24a0b26f2a10259e5 /net/ipv4/route.c | |
parent | abaa72d7fd9a20a67b62e6afa0e746e27851dc33 (diff) |
ipv4: Fix again the time difference calculation
Fix again the diff value in rt_bind_exception
after collision of two latest patches, my original commit
actually fixed the same problem.
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/route.c')
-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 89e39dc5336b..9f7ffbe201c9 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -1926,7 +1926,7 @@ restart: | |||
1926 | if (daddr != fnhe_daddr) | 1926 | if (daddr != fnhe_daddr) |
1927 | continue; | 1927 | continue; |
1928 | if (pmtu) { | 1928 | if (pmtu) { |
1929 | unsigned long diff = jiffies - expires; | 1929 | unsigned long diff = expires - jiffies; |
1930 | 1930 | ||
1931 | if (time_before(jiffies, expires)) { | 1931 | if (time_before(jiffies, expires)) { |
1932 | rt->rt_pmtu = pmtu; | 1932 | rt->rt_pmtu = pmtu; |