Skip to content

Commit

Permalink
netrom: Add missing annotation for nr_info_stop()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
irenge authored and davem330 committed Feb 24, 2020
1 parent d087f18 commit 8b003f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/netrom/af_netrom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,7 @@ static void *nr_info_next(struct seq_file *seq, void *v, loff_t *pos)
}

static void nr_info_stop(struct seq_file *seq, void *v)
__releases(&nr_list_lock)
{
spin_unlock_bh(&nr_list_lock);
}
Expand Down

0 comments on commit 8b003f0

Please sign in to comment.