Skip to content

Commit

Permalink
net: Add missing annotation for *netlink_seq_start()
Browse files Browse the repository at this point in the history
Sparse reports a warning at netlink_seq_start()

warning: context imbalance in netlink_seq_start() - wrong count at exit
The root cause is the missing annotation at netlink_seq_start()
Add the missing  __acquires(RCU) annotation

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jules Irenge authored and David S. Miller committed Mar 12, 2020
1 parent 734c8f7 commit 64fbca0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/netlink/af_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -2583,6 +2583,7 @@ static void *__netlink_seq_next(struct seq_file *seq)
}

static void *netlink_seq_start(struct seq_file *seq, loff_t *posp)
__acquires(RCU)
{
struct nl_seq_iter *iter = seq->private;
void *obj = SEQ_START_TOKEN;
Expand Down

0 comments on commit 64fbca0

Please sign in to comment.