Skip to content

Commit be21139

Browse files
irengedavem330
authored andcommitted
net: netrom: Add missing annotation for nr_neigh_stop()
Sparse reports a warning at nr_neigh_stop() warning: context imbalance in nr_neigh_stop() - unexpected unlock The root cause is the missing annotation at nr_neigh_stop() Add the missing __releases(&nr_neigh_list_lock) annotation Signed-off-by: Jules Irenge <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2d6b6ac commit be21139

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
@@ -907,6 +907,7 @@ static void *nr_neigh_next(struct seq_file *seq, void *v, loff_t *pos)
907907
}
908908

909909
static void nr_neigh_stop(struct seq_file *seq, void *v)
910+
__releases(&nr_neigh_list_lock)
910911
{
911912
spin_unlock_bh(&nr_neigh_list_lock);
912913
}

0 commit comments

Comments
 (0)