diff options
author | David S. Miller <davem@davemloft.net> | 2011-01-27 17:59:08 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-27 17:59:08 -0500 |
commit | 1397e171f143878dd16ad5f8c99f7b9440cc8911 (patch) | |
tree | 8aadcac291a2550028950bcaa5d8d0c0d6bedc45 /net/ipv6/route.c | |
parent | 144001bddcb4db62c2261f1d703d835851031577 (diff) | |
parent | 8f2771f2b85aea4d0f9a0137ad3b63d1173c0962 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 45fafa018f12..691798c169a5 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -200,7 +200,6 @@ static void ip6_dst_destroy(struct dst_entry *dst) | |||
200 | } | 200 | } |
201 | dst_destroy_metrics_generic(dst); | 201 | dst_destroy_metrics_generic(dst); |
202 | if (peer) { | 202 | if (peer) { |
203 | BUG_ON(!(rt->rt6i_flags & RTF_CACHE)); | ||
204 | rt->rt6i_peer = NULL; | 203 | rt->rt6i_peer = NULL; |
205 | inet_putpeer(peer); | 204 | inet_putpeer(peer); |
206 | } | 205 | } |
@@ -210,9 +209,6 @@ void rt6_bind_peer(struct rt6_info *rt, int create) | |||
210 | { | 209 | { |
211 | struct inet_peer *peer; | 210 | struct inet_peer *peer; |
212 | 211 | ||
213 | if (WARN_ON(!(rt->rt6i_flags & RTF_CACHE))) | ||
214 | return; | ||
215 | |||
216 | peer = inet_getpeer_v6(&rt->rt6i_dst.addr, create); | 212 | peer = inet_getpeer_v6(&rt->rt6i_dst.addr, create); |
217 | if (peer && cmpxchg(&rt->rt6i_peer, NULL, peer) != NULL) | 213 | if (peer && cmpxchg(&rt->rt6i_peer, NULL, peer) != NULL) |
218 | inet_putpeer(peer); | 214 | inet_putpeer(peer); |