Skip to content

Commit 5018adf

Browse files
irengedavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8b003f0 commit 5018adf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/netrom/nr_route.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,7 @@ int nr_route_frame(struct sk_buff *skb, ax25_cb *ax25)
838838
#ifdef CONFIG_PROC_FS
839839

840840
static void *nr_node_start(struct seq_file *seq, loff_t *pos)
841+
__acquires(&nr_node_list_lock)
841842
{
842843
spin_lock_bh(&nr_node_list_lock);
843844
return seq_hlist_start_head(&nr_node_list, *pos);

0 commit comments

Comments
 (0)