Message ID | 20220901071238.3044-4-fw@strlen.de (mailing list archive) |
---|---|
State | Accepted |
Commit | 77972a36ecc4db7fc7c68f0e80714263c5f03f65 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net,1/4] netfilter: remove nf_conntrack_helper sysctl and modparam toggles | expand |
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index 2ee50e23c9b7..816052089b33 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -2166,8 +2166,10 @@ static int nft_basechain_init(struct nft_base_chain *basechain, u8 family, chain->flags |= NFT_CHAIN_BASE | flags; basechain->policy = NF_ACCEPT; if (chain->flags & NFT_CHAIN_HW_OFFLOAD && - !nft_chain_offload_support(basechain)) + !nft_chain_offload_support(basechain)) { + list_splice_init(&basechain->hook_list, &hook->list); return -EOPNOTSUPP; + } flow_block_init(&basechain->flow_block);