Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313958
b: refs/heads/master
c: 55afaba
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Jun 11, 2012
1 parent 66bda76 commit 9f581c8
Show file tree
Hide file tree
Showing 3 changed files with 3 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: 352e04b9111d608bd89ba7bd8070846d4f97d104
refs/heads/master: 55afabaa0df0dd139c8796a71beb43d1216fbe43
2 changes: 1 addition & 1 deletion trunk/include/net/ip6_route.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static inline struct inet_peer *__rt6_get_peer(struct rt6_info *rt, int create)
return rt6_peer_ptr(rt);

rt6_bind_peer(rt, create);
return rt6_peer_ptr(rt);
return (rt6_has_peer(rt) ? rt6_peer_ptr(rt) : NULL);
}

static inline struct inet_peer *rt6_get_peer(struct rt6_info *rt)
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/net/route.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ static inline struct inet_peer *__rt_get_peer(struct rtable *rt, __be32 daddr, i
return rt_peer_ptr(rt);

rt_bind_peer(rt, daddr, create);
return rt_peer_ptr(rt);
return (rt_has_peer(rt) ? rt_peer_ptr(rt) : NULL);
}

static inline struct inet_peer *rt_get_peer(struct rtable *rt, __be32 daddr)
Expand Down

0 comments on commit 9f581c8

Please sign in to comment.