* [PATCH] ipv4: Fix again the time difference calculation
@ 2012-07-19 20:02 Julian Anastasov
2012-07-19 20:01 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Julian Anastasov @ 2012-07-19 20:02 UTC (permalink / raw)
To: David Miller; +Cc: netdev
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>
---
net/ipv4/route.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 89e39dc5..9f7ffbe 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;
--
1.7.3.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-19 20:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-19 20:02 [PATCH] ipv4: Fix again the time difference calculation Julian Anastasov
2012-07-19 20:01 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).