X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=net%2Fnetfilter%2Fx_tables.c;h=55802e97f906d1987ed78b4296584deb38e5f876;hb=00a5ae218d57741088068799b810416ac249a9ce;hp=a77dd514297c9627d6103dbcb6428bb6bdd165ad;hpb=dec0029a59779d8279dde663ef8abe9824ee5773;p=uclinux-h8%2Flinux.git diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index a77dd514297c..55802e97f906 100644 --- a/net/netfilter/x_tables.c +++ b/net/netfilter/x_tables.c @@ -1729,8 +1729,17 @@ static int __net_init xt_net_init(struct net *net) return 0; } +static void __net_exit xt_net_exit(struct net *net) +{ + int i; + + for (i = 0; i < NFPROTO_NUMPROTO; i++) + WARN_ON_ONCE(!list_empty(&net->xt.tables[i])); +} + static struct pernet_operations xt_net_ops = { .init = xt_net_init, + .exit = xt_net_exit, }; static int __init xt_init(void)