提交 f31fd383 编写于 作者: J Julian Anastasov 提交者: David S. Miller

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: NJulian Anastasov <ja@ssi.bg>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 abaa72d7
...@@ -1926,7 +1926,7 @@ static void rt_bind_exception(struct rtable *rt, struct fib_nh *nh, __be32 daddr ...@@ -1926,7 +1926,7 @@ static void rt_bind_exception(struct rtable *rt, struct fib_nh *nh, __be32 daddr
if (daddr != fnhe_daddr) if (daddr != fnhe_daddr)
continue; continue;
if (pmtu) { if (pmtu) {
unsigned long diff = jiffies - expires; unsigned long diff = expires - jiffies;
if (time_before(jiffies, expires)) { if (time_before(jiffies, expires)) {
rt->rt_pmtu = pmtu; rt->rt_pmtu = pmtu;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册