Unverified Commit a305b9c0 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!8793 netfilter: nf_tables: honor table dormant flag from netdev release event path

parents 866c3f30 f2520b78
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -339,7 +339,9 @@ static void nft_netdev_event(unsigned long event, struct net_device *dev,
		return;

	if (n > 1) {
		if (!(ctx->chain->table->flags & NFT_TABLE_F_DORMANT))
			nf_unregister_net_hook(ctx->net, &found->ops);

		list_del_rcu(&found->list);
		kfree_rcu(found, rcu);
		return;