diff mbox

ipv4: Fix again the time difference calculation

Message ID 1342728165-2046-1-git-send-email-ja@ssi.bg
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Julian Anastasov July 19, 2012, 8:02 p.m. UTC
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(-)

Comments

David Miller July 19, 2012, 8:01 p.m. UTC | #1
From: Julian Anastasov <ja@ssi.bg>
Date: Thu, 19 Jul 2012 23:02:45 +0300

> 	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>

I noticed this too while respinning the routing cache deletion
patches, I'll apply this, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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;