Commit 7ed3bf10 authored by Lu Wei's avatar Lu Wei
Browse files

Revert "netfilter: nf_tables: unbind non-anonymous set if rule construction fails"

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I86JB6



-------------------------------

This reverts commit dbc47736.

Backport the dependency patch and then re-backport this patch.

Signed-off-by: default avatarLu Wei <luwei32@huawei.com>
parent 4511bbb6
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -4564,8 +4564,6 @@ void nf_tables_deactivate_set(const struct nft_ctx *ctx, struct nft_set *set,
		nft_set_trans_unbind(ctx, set);
		if (nft_set_is_anonymous(set))
			nft_deactivate_next(ctx->net, set);
		else
			list_del_rcu(&binding->list);

		set->use--;
		break;