Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299542
b: refs/heads/master
c: edfb5d4
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Bohac authored and David S. Miller committed Apr 18, 2012
1 parent c4619a9 commit 7a3d637
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b95465c8fcd7c8619ff9ff7bbf8038ab31c7f34b
refs/heads/master: edfb5d4687d587c9f714799c7ee27517118e12e6
10 changes: 8 additions & 2 deletions trunk/include/net/ip6_fib.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,14 @@ static inline void rt6_set_expires(struct rt6_info *rt, unsigned long expires)

static inline void rt6_update_expires(struct rt6_info *rt, int timeout)
{
if (!(rt->rt6i_flags & RTF_EXPIRES) && rt->dst.from)
dst_release(rt->dst.from);
if (!(rt->rt6i_flags & RTF_EXPIRES)) {
if (rt->dst.from)
dst_release(rt->dst.from);
/* dst_set_expires relies on expires == 0
* if it has not been set previously.
*/
rt->dst.expires = 0;
}

dst_set_expires(&rt->dst, timeout);
rt->rt6i_flags |= RTF_EXPIRES;
Expand Down

0 comments on commit 7a3d637

Please sign in to comment.