Skip to contentSkip to conversation

netfilter: x_tables: unbreak module auto loading

PATCH Applied Florian Westphal 2 participants 2 messages Jan 9, 2018 – Jan 10, 2018

Subsystems (2)
lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 netfilter: x_tables: unbreak module auto loading

a typo causes module auto load support to never be compiled in.

Fixes 03d13b6868a2 ("netfilter: xtables: add and use xt_request_find_table_lock")
---
 net/netfilter/x_tables.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/x_tables.c +1 -1
index 10c19a3f4cbd..5b8f3b7358e6 100644
@@ -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)
Signature · 1 line
2.13.6
maintainer Applied
#1 lore raw
Quoted 1 line · Florian Westphal

a typo causes module auto load support to never be compiled in.

Applied, thanks Florian!