]> git.baikalelectronics.ru Git - kernel.git/commit
net: ip6mr: fix static mfc/dev leaks on table destruction
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Fri, 20 Nov 2015 12:54:20 +0000 (13:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Nov 2015 01:44:47 +0000 (20:44 -0500)
commit852033f3c4da1d2bb06ccdcb20f3d925f80d3a5d
tree086472cac5b8c2221443ed535d641ff6ca288481
parentfe734a5cef5aaa8afc518f6d5e77c1adf8ab9691
net: ip6mr: fix static mfc/dev leaks on table destruction

Similar to ipv4, when destroying an mrt table the static mfc entries and
the static devices are kept, which leads to devices that can never be
destroyed (because of refcnt taken) and leaked memory. Make sure that
everything is cleaned up on netns destruction.

Fixes: 4c0e9d8cc1e9 ("netns: ip6mr: enable namespace support in ipv6 multicast forwarding code")
CC: Benjamin Thery <benjamin.thery@bull.net>
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Reviewed-by: Cong Wang <cwang@twopensource.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6mr.c