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

net: Add missing annotation for llc_seq_start()

Sparse reports a warning at llc_seq_start()

warning: context imbalance in llc_seq_start() - wrong count at exit
The root cause is the msiing annotation at llc_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>

authored by

Jules Irenge and committed by
David S. Miller
8e0f8ccf b77b4f63

+1 -1
+1 -1
net/llc/llc_proc.c
··· 56 56 return sk; 57 57 } 58 58 59 - static void *llc_seq_start(struct seq_file *seq, loff_t *pos) 59 + static void *llc_seq_start(struct seq_file *seq, loff_t *pos) __acquires(RCU) 60 60 { 61 61 loff_t l = *pos; 62 62