netfilter: xt_recent: fix namespace destroy path
authorVitaly E. Lavrov <lve@guap.ru>
Mon, 24 Dec 2012 12:55:20 +0000 (13:55 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 26 Dec 2012 17:14:48 +0000 (18:14 +0100)
commit665e205c16c1f902ac6763b8ce8a0a3a1dcefe59
treedf165b4009ded7206cf357d75a62f042bbb3c910
parent09181842b000344b1205801df3aa5b726c03cc62
netfilter: xt_recent: fix namespace destroy path

recent_net_exit() is called before recent_mt_destroy() in the
destroy path of network namespaces. Make sure there are no entries
in the parent proc entry xt_recent before removing it.

Signed-off-by: Vitaly E. Lavrov <lve@guap.ru>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_recent.c