Skip to content

Commit d087f18

Browse files
irengedavem330
authored andcommitted
netrom: Add missing annotation for nr_info_start()
Sparse reports a warning at nr_info_start() warning: context imbalance in nr_info_start() - wrong count at exit The root cause is the missing annotation at nr_info_start() Add the missing __acquires(&nr_list_lock) Signed-off-by: Jules Irenge <jbi.octave@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8e0f8cc commit d087f18

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎net/netrom/af_netrom.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,6 +1230,7 @@ static int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
12301230
#ifdef CONFIG_PROC_FS
12311231

12321232
static void *nr_info_start(struct seq_file *seq, loff_t *pos)
1233+
__acquires(&nr_list_lock)
12331234
{
12341235
spin_lock_bh(&nr_list_lock);
12351236
return seq_hlist_start_head(&nr_list, *pos);

0 commit comments

Comments
 (0)