Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e619d87 authored by Florian Westphal's avatar Florian Westphal Committed by Pablo Neira Ayuso
Browse files

netfilter: nf_tables: flow event notifier must use transaction mutex



Fixes: f102d66b ("netfilter: nf_tables: use dedicated mutex to guard transactions")
Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent ddba40be
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5940,13 +5940,13 @@ static int nf_tables_flowtable_event(struct notifier_block *this,
	if (!net)
		return 0;

	nfnl_lock(NFNL_SUBSYS_NFTABLES);
	mutex_lock(&net->nft.commit_mutex);
	list_for_each_entry(table, &net->nft.tables, list) {
		list_for_each_entry(flowtable, &table->flowtables, list) {
			nft_flowtable_event(event, dev, flowtable);
		}
	}
	nfnl_unlock(NFNL_SUBSYS_NFTABLES);
	mutex_unlock(&net->nft.commit_mutex);
	put_net(net);
	return NOTIFY_DONE;
}