Commit 7fed84f622ec2696087301199c2952b85e0cc3b4
1 parent
1eb8c695bd
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
net/ipv4/route.c
... | ... | @@ -1907,7 +1907,7 @@ |
1907 | 1907 | if (fnhe->fnhe_daddr == daddr) { |
1908 | 1908 | if (fnhe->fnhe_pmtu) { |
1909 | 1909 | unsigned long expires = fnhe->fnhe_expires; |
1910 | - unsigned long diff = jiffies - expires; | |
1910 | + unsigned long diff = expires - jiffies; | |
1911 | 1911 | |
1912 | 1912 | if (time_before(jiffies, expires)) { |
1913 | 1913 | rt->rt_pmtu = fnhe->fnhe_pmtu; |