]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/netfilter/nf_tables_api.c
netfilter: nf_tables: force module load in case select_ops() returns -EAGAIN
[linux.git] / net / netfilter / nf_tables_api.c
index 5e97bf64975a002b716c77e0c4681d2404602797..d22d00ca78c1770fc4bfacf72259e34bf7c2e7e3 100644 (file)
@@ -2144,6 +2144,12 @@ static int nf_tables_expr_parse(const struct nft_ctx *ctx,
                                       (const struct nlattr * const *)info->tb);
                if (IS_ERR(ops)) {
                        err = PTR_ERR(ops);
+#ifdef CONFIG_MODULES
+                       if (err == -EAGAIN)
+                               nft_expr_type_request_module(ctx->net,
+                                                            ctx->family,
+                                                            tb[NFTA_EXPR_NAME]);
+#endif
                        goto err1;
                }
        } else