ipv6: fix a bug in ndisc_send_redirect
Subsystems (3)
PATCH 1/1 ipv6: fix a bug in ndisc_send_redirect
Release skb when transmit rate limit _not_ allow
Signed-off-by Li Wei <[email protected]>
--- net/ipv6/ndisc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/ipv6/ndisc.c +1 -1
@@ -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) {
Signature · 1 line
1.7.3.2
From: Li Wei <[email protected]>
Date: Wed, 23 Nov 2011 14:18:05 +0800
Quoted 3 lines
Release skb when transmit rate limit _not_ allow
Signed-off-by Li Wei <[email protected]>
Applied, thank you.