netfilter: conntrack: Add missing annotations for nf_conntrack_all_lock() and nf_conn...
authorJules Irenge <jbi.octave@gmail.com>
Wed, 11 Mar 2020 01:09:05 +0000 (01:09 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 27 Mar 2020 17:22:06 +0000 (18:22 +0100)
commit6b36d4829cbc7c38daee83365cc46e86c33e93fb
tree7bfee235fbdfb5b22e8f07a2fb4a595a9dfd594d
parent19f8f717f620576ada10b0ba8f4d55ef1208571e
netfilter: conntrack: Add missing annotations for nf_conntrack_all_lock() and nf_conntrack_all_unlock()

Sparse reports warnings at nf_conntrack_all_lock()
and nf_conntrack_all_unlock()

warning: context imbalance in nf_conntrack_all_lock()
- wrong count at exit
warning: context imbalance in nf_conntrack_all_unlock()
- unexpected unlock

Add the missing __acquires(&nf_conntrack_locks_all_lock)
Add missing __releases(&nf_conntrack_locks_all_lock)

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_core.c