OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1eb8c69
)
ipv4: Fix time difference calculation in rt_bind_exception().
author
David S. Miller
<davem@davemloft.net>
Thu, 19 Jul 2012 15:46:59 +0000
(08:46 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 19 Jul 2012 15:46:59 +0000
(08:46 -0700)
Reported-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c
patch
|
blob
|
history
diff --git
a/net/ipv4/route.c
b/net/ipv4/route.c
index
f67e702
..
2c25581
100644
(file)
--- a/
net/ipv4/route.c
+++ b/
net/ipv4/route.c
@@
-1907,7
+1907,7
@@
static void rt_bind_exception(struct rtable *rt, struct fib_nh *nh, __be32 daddr
if (fnhe->fnhe_daddr == daddr) {
if (fnhe->fnhe_pmtu) {
unsigned long expires = fnhe->fnhe_expires;
- unsigned long diff =
jiffies - expir
es;
+ unsigned long diff =
expires - jiffi
es;
if (time_before(jiffies, expires)) {
rt->rt_pmtu = fnhe->fnhe_pmtu;