Skip to content

Commit 2d6b6ac

Browse files
irengedavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0eb713f commit 2d6b6ac

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
@@ -895,6 +895,7 @@ const struct seq_operations nr_node_seqops = {
895895
};
896896

897897
static void *nr_neigh_start(struct seq_file *seq, loff_t *pos)
898+
__acquires(&nr_neigh_list_lock)
898899
{
899900
spin_lock_bh(&nr_neigh_list_lock);
900901
return seq_hlist_start_head(&nr_neigh_list, *pos);

0 commit comments

Comments
 (0)