Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Julian Anastasov and committed by
David S. Miller
f31fd383 abaa72d7

+1 -1
+1 -1
net/ipv4/route.c
··· 1926 1926 if (daddr != fnhe_daddr) 1927 1927 continue; 1928 1928 if (pmtu) { 1929 - unsigned long diff = jiffies - expires; 1929 + unsigned long diff = expires - jiffies; 1930 1930 1931 1931 if (time_before(jiffies, expires)) { 1932 1932 rt->rt_pmtu = pmtu;