]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ipv6: release dst properly in ipip6_tunnel_xmit
authorLi RongQing <roy.qing.li@gmail.com>
Fri, 20 Dec 2013 09:20:12 +0000 (17:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Dec 2013 18:14:40 +0000 (13:14 -0500)
commit6a9eadccff2926e392173a989042f14c867cffbf
tree1aedee4f6e03d14cb30657370aff6a96edf09193
parent4710b2ba873692194c636811ceda398f95e02db2
ipv6: release dst properly in ipip6_tunnel_xmit

if a dst is not attached to anywhere, it should be released before
exit ipip6_tunnel_xmit, otherwise cause dst memory leakage.

Fixes: 61c1db7fae21 ("ipv6: sit: add GSO/TSO support")
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sit.c