summaryrefslogtreecommitdiffstats
path: root/net/netrom
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2020-02-23 23:16:51 +0000
committerDavid S. Miller <davem@davemloft.net>2020-02-24 13:26:49 -0800
commit5018adfd7a18219c77eeb255555f7d7052819542 (patch)
treef9e796eb097ebd46f62725413746f40c4264fc13 /net/netrom
parent8b003f0d5c2e98d3748ed1f642030ddeac9e6481 (diff)
downloadlinux-5018adfd7a18219c77eeb255555f7d7052819542.tar.gz
linux-5018adfd7a18219c77eeb255555f7d7052819542.tar.bz2
linux-5018adfd7a18219c77eeb255555f7d7052819542.zip
net: netrom: Add missing annotation for nr_node_start()
Sparse reports a warning at nr_node_start() warning: context imbalance in nr_node_start() - wrong count at exit The root cause is the missing annotation at nr_node_start() Add the missing __acquires(&nr_node_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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netrom/nr_route.c b/net/netrom/nr_route.c
index d41335bad1f8..fe278fc24153 100644
--- a/net/netrom/nr_route.c
+++ b/net/netrom/nr_route.c
@@ -838,6 +838,7 @@ int nr_route_frame(struct sk_buff *skb, ax25_cb *ax25)
#ifdef CONFIG_PROC_FS
static void *nr_node_start(struct seq_file *seq, loff_t *pos)
+ __acquires(&nr_node_list_lock)
{
spin_lock_bh(&nr_node_list_lock);
return seq_hlist_start_head(&nr_node_list, *pos);