Skip to content

Commit 8b003f0

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/netrom/af_netrom.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,6 +1242,7 @@ static void *nr_info_next(struct seq_file *seq, void *v, loff_t *pos)
12421242
}
12431243

12441244
static void nr_info_stop(struct seq_file *seq, void *v)
1245+
__releases(&nr_list_lock)
12451246
{
12461247
spin_unlock_bh(&nr_list_lock);
12471248
}

0 commit comments

Comments
 (0)