Re: [PATCH net 2/2] net: ip6mr: fix static mfc/dev leaks on table destruction

2015-11-20 Thread Cong Wang
On Fri, Nov 20, 2015 at 4:54 AM, Nikolay Aleksandrov wrote: > From: Nikolay Aleksandrov > > 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. Mak

[PATCH net 2/2] net: ip6mr: fix static mfc/dev leaks on table destruction

2015-11-20 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov 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: 822