Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <jbi.octave@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jules Irenge and committed by
David S. Miller
be21139f 2d6b6acf

+1
+1
net/netrom/nr_route.c
··· 907 907 } 908 908 909 909 static void nr_neigh_stop(struct seq_file *seq, void *v) 910 + __releases(&nr_neigh_list_lock) 910 911 { 911 912 spin_unlock_bh(&nr_neigh_list_lock); 912 913 }