Commit 0a757e7a authored by Lu Wei's avatar Lu Wei
Browse files

Revert "netfilter: nf_tables: incorrect error path handling with NFT_MSG_NEWRULE"

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



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

This reverts commit a45e538a.

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

Signed-off-by: default avatarLu Wei <luwei32@huawei.com>
parent 18f3001b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3367,8 +3367,7 @@ static int nf_tables_newrule(struct net *net, struct sock *nlsk,

	return 0;
err2:
	nft_rule_expr_deactivate(&ctx, rule, NFT_TRANS_PREPARE);
	nf_tables_rule_destroy(&ctx, rule);
	nf_tables_rule_release(&ctx, rule);
err1:
	for (i = 0; i < n; i++) {
		if (info[i].ops) {