projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02f1ce3
)
ipv6: fix a bug in ndisc_send_redirect
author
Li Wei
<lw@cn.fujitsu.com>
Wed, 23 Nov 2011 08:51:54 +0000
(
03:51
-0500)
committer
David S. Miller
<davem@davemloft.net>
Wed, 23 Nov 2011 08:51:54 +0000
(
03:51
-0500)
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>
net/ipv6/ndisc.c
patch
|
blob
|
history
diff --git
a/net/ipv6/ndisc.c
b/net/ipv6/ndisc.c
index
44e5b7f
..
0cb78d7
100644
(file)
--- 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) {