From: Julian Anastasov Date: Thu, 19 Jul 2012 20:02:45 +0000 (+0300) Subject: ipv4: Fix again the time difference calculation X-Git-Tag: firefly_0821_release~3680^2~2381^2~59 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f31fd383821555cbd77ee83e17837f7060825395;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: David S. Miller --- 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: 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;