Skip to content

Commit 4d65a24

Browse files
Li Weidavem330
authored andcommitted
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>
1 parent 02f1ce3 commit 4d65a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/ndisc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,7 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,
15711571
}
15721572
if (!rt->rt6i_peer)
15731573
rt6_bind_peer(rt, 1);
1574-
if (inet_peer_xrlim_allow(rt->rt6i_peer, 1*HZ))
1574+
if (!inet_peer_xrlim_allow(rt->rt6i_peer, 1*HZ))
15751575
goto release;
15761576

15771577
if (dev->addr_len) {

0 commit comments

Comments
 (0)