diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2020-02-24 02:16:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-25 00:26:49 +0300 |
commit | 2d6b6acfce5f0b1e0241251d2a7aaf570e149809 (patch) | |
tree | e3924e7b7f88484754f1033f392bb6bb9230d1b0 /net/netrom | |
parent | 0eb713fb667de4be60ad645f88de6e5bd15d41df (diff) | |
download | linux-2d6b6acfce5f0b1e0241251d2a7aaf570e149809.tar.xz |
net: netrom: Add missing annotation for nr_neigh_start()
Sparse reports a warning at nr_neigh_start()
warning: context imbalance in nr_neigh_start() - wrong count at exit
The root cause is the missing annotation at nr_neigh_start()
Add the missing __acquires(&nr_neigh_list_lock) annotation
Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netrom')
-rw-r--r-- | net/netrom/nr_route.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netrom/nr_route.c b/net/netrom/nr_route.c index 637a743c060d..33e7b91fc805 100644 --- a/net/netrom/nr_route.c +++ b/net/netrom/nr_route.c @@ -895,6 +895,7 @@ const struct seq_operations nr_node_seqops = { }; static void *nr_neigh_start(struct seq_file *seq, loff_t *pos) + __acquires(&nr_neigh_list_lock) { spin_lock_bh(&nr_neigh_list_lock); return seq_hlist_start_head(&nr_neigh_list, *pos); |