netfilter: x_tables: unbreak module auto loading
authorFlorian Westphal <fw@strlen.de>
Tue, 9 Jan 2018 13:30:48 +0000 (14:30 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 10 Jan 2018 14:32:12 +0000 (15:32 +0100)
a typo causes module auto load support to never be compiled in.

Fixes: 03d13b6868a2 ("netfilter: xtables: add and use xt_request_find_table_lock")
Reported-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/x_tables.c

index 10c19a3f4cbdbecd40cffa3fa49d9e4e9d7841b7..5b8f3b7358e659c43c586f738e2bb211b2b7c849 100644 (file)
@@ -1082,7 +1082,7 @@ struct xt_table *xt_request_find_table_lock(struct net *net, u_int8_t af,
 {
        struct xt_table *t = xt_find_table_lock(net, af, name);
 
-#ifdef CONFIG_MODULE
+#ifdef CONFIG_MODULES
        if (IS_ERR(t)) {
                int err = request_module("%stable_%s", xt_prefix[af], name);
                if (err)