Skip to content

Commit

Permalink
ipv4: Fix again the time difference calculation
Browse files Browse the repository at this point in the history
	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>
  • Loading branch information
Julian Anastasov authored and David S. Miller committed Jul 19, 2012
1 parent abaa72d commit f31fd38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -1926,7 +1926,7 @@ static void rt_bind_exception(struct rtable *rt, struct fib_nh *nh, __be32 daddr
if (daddr != fnhe_daddr)
continue;
if (pmtu) {
unsigned long diff = jiffies - expires;
unsigned long diff = expires - jiffies;

if (time_before(jiffies, expires)) {
rt->rt_pmtu = pmtu;
Expand Down

0 comments on commit f31fd38

Please sign in to comment.