summaryrefslogtreecommitdiffstats
path: root/net/ipv6/ndisc.c
diff options
context:
space:
mode:
authorLi Wei <lw@cn.fujitsu.com>2011-11-23 09:51:54 +0100
committerDavid S. Miller <davem@davemloft.net>2011-11-23 09:51:54 +0100
commit4d65a2465f6f2694de67777a8aedb1272f473979 (patch)
treeca1460a1acf10aa733f1aaa6ec8b83ad42385c1d /net/ipv6/ndisc.c
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linvil... (diff)
downloadlinux-4d65a2465f6f2694de67777a8aedb1272f473979.tar.xz
linux-4d65a2465f6f2694de67777a8aedb1272f473979.zip
ipv6: fix a bug in ndisc_send_redirect
Release skb when transmit rate limit _not_ allow Signed-off-by: Li Wei <lw@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/ipv6/ndisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index 44e5b7f2a6c1..0cb78d7ddaf5 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -1571,7 +1571,7 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,
}
if (!rt->rt6i_peer)
rt6_bind_peer(rt, 1);
- if (inet_peer_xrlim_allow(rt->rt6i_peer, 1*HZ))
+ if (!inet_peer_xrlim_allow(rt->rt6i_peer, 1*HZ))
goto release;
if (dev->addr_len) {