Commit 78e21eb6 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso

netfilter: nft_meta: skip EAGAIN if nft_meta_bridge is not a module

If it is a module, request this module. Otherwise, if it is compiled
built-in or not selected, skip this.

Fixes: 0ef1efd1 ("netfilter: nf_tables: force module load in case select_ops() returns -EAGAIN")
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent e971ceb8
...@@ -546,7 +546,7 @@ nft_meta_select_ops(const struct nft_ctx *ctx, ...@@ -546,7 +546,7 @@ nft_meta_select_ops(const struct nft_ctx *ctx,
if (tb[NFTA_META_DREG] && tb[NFTA_META_SREG]) if (tb[NFTA_META_DREG] && tb[NFTA_META_SREG])
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);
#ifdef CONFIG_NF_TABLES_BRIDGE #if defined(CONFIG_NF_TABLES_BRIDGE) && IS_MODULE(CONFIG_NFT_BRIDGE_META)
if (ctx->family == NFPROTO_BRIDGE) if (ctx->family == NFPROTO_BRIDGE)
return ERR_PTR(-EAGAIN); return ERR_PTR(-EAGAIN);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment