netfilter: remove __nf_ct_kill_acct helper
[cascardo/linux.git] / net / netfilter / nft_dynset.c
index 78d4914..0af2669 100644 (file)
@@ -103,6 +103,7 @@ static int nft_dynset_init(const struct nft_ctx *ctx,
                           const struct nlattr * const tb[])
 {
        struct nft_dynset *priv = nft_expr_priv(expr);
+       u8 genmask = nft_genmask_next(ctx->net);
        struct nft_set *set;
        u64 timeout;
        int err;
@@ -112,11 +113,13 @@ static int nft_dynset_init(const struct nft_ctx *ctx,
            tb[NFTA_DYNSET_SREG_KEY] == NULL)
                return -EINVAL;
 
-       set = nf_tables_set_lookup(ctx->table, tb[NFTA_DYNSET_SET_NAME]);
+       set = nf_tables_set_lookup(ctx->table, tb[NFTA_DYNSET_SET_NAME],
+                                  genmask);
        if (IS_ERR(set)) {
                if (tb[NFTA_DYNSET_SET_ID])
                        set = nf_tables_set_lookup_byid(ctx->net,
-                                                       tb[NFTA_DYNSET_SET_ID]);
+                                                       tb[NFTA_DYNSET_SET_ID],
+                                                       genmask);
                if (IS_ERR(set))
                        return PTR_ERR(set);
        }