netfilter: nftables: add catch-all set element support
[linux-2.6-microblaze.git] / net / netfilter / nft_dynset.c
index d44a70c..6ba3256 100644 (file)
@@ -161,13 +161,14 @@ static int nft_dynset_init(const struct nft_ctx *ctx,
                           const struct nft_expr *expr,
                           const struct nlattr * const tb[])
 {
+       struct nftables_pernet *nft_net = nft_pernet(ctx->net);
        struct nft_dynset *priv = nft_expr_priv(expr);
        u8 genmask = nft_genmask_next(ctx->net);
        struct nft_set *set;
        u64 timeout;
        int err, i;
 
-       lockdep_assert_held(&ctx->net->nft.commit_mutex);
+       lockdep_assert_held(&nft_net->commit_mutex);
 
        if (tb[NFTA_DYNSET_SET_NAME] == NULL ||
            tb[NFTA_DYNSET_OP] == NULL ||