Message ID | 20230815223011.7019-10-fw@strlen.de (mailing list archive) |
---|---|
State | Accepted |
Commit | 23185c6aed1ffb8fc44087880ba2767aba493779 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net,1/9] netfilter: nf_tables: fix false-positive lockdep splat | expand |
diff --git a/net/netfilter/nft_dynset.c b/net/netfilter/nft_dynset.c index 4fb34d76dbea..5c5cc01c73c5 100644 --- a/net/netfilter/nft_dynset.c +++ b/net/netfilter/nft_dynset.c @@ -191,6 +191,9 @@ static int nft_dynset_init(const struct nft_ctx *ctx, if (IS_ERR(set)) return PTR_ERR(set); + if (set->flags & NFT_SET_OBJECT) + return -EOPNOTSUPP; + if (set->ops->update == NULL) return -EOPNOTSUPP;