netfilter: nf_tables: use correct lock to protect gc_list
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 21 Aug 2023 12:33:32 +0000 (14:33 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 23 Aug 2023 14:10:01 +0000 (16:10 +0200)
commit8357bc946a2abc2a10ca40e5a2105d2b4c57515e
tree6f71260551875e9de057313059274b9409013f45
parent720344340fb9be2765bbaab7b292ece0a4570eae
netfilter: nf_tables: use correct lock to protect gc_list

Use nf_tables_gc_list_lock spinlock, not nf_tables_destroy_list_lock to
protect the gc list.

Fixes: 5f68718b34a5 ("netfilter: nf_tables: GC transaction API to avoid race with control plane")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nf_tables_api.c