diff options
author | Xin Long <lucien.xin@gmail.com> | 2019-09-13 12:45:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-16 10:08:18 +0300 |
commit | 28e486037747c2180470b77c290d4090ad42f259 (patch) | |
tree | f013c15d0c3921b8b89258f4a3175b007791c9aa /net/ipv6/sit.c | |
parent | acdcecc61285faed359f1a3568c32089cc3a8329 (diff) | |
download | linux-28e486037747c2180470b77c290d4090ad42f259.tar.xz |
ip6_gre: fix a dst leak in ip6erspan_tunnel_xmit
In ip6erspan_tunnel_xmit(), if the skb will not be sent out, it has to
be freed on the tx_err path. Otherwise when deleting a netns, it would
cause dst/dev to leak, and dmesg shows:
unregister_netdevice: waiting for lo to become free. Usage count = 1
Fixes: ef7baf5e083c ("ip6_gre: add ip6 erspan collect_md mode")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: William Tu <u9012063@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/sit.c')
0 files changed, 0 insertions, 0 deletions