]> git.baikalelectronics.ru Git - kernel.git/commit
raw: Add missing annotations to raw_seq_start() and raw_seq_stop()
authorJules Irenge <jbi.octave@gmail.com>
Wed, 11 Mar 2020 01:09:02 +0000 (01:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Mar 2020 06:19:40 +0000 (23:19 -0700)
commit561a2275563d9c65afb6a5be1c545c94ea450c7a
tree24bc596b2a8248678383dad395396819f3fc3022
parentff6d982d3643181db668e0aebe88036c4debcf6f
raw: Add missing annotations to raw_seq_start() and raw_seq_stop()

Sparse reports warnings at raw_seq_start() and raw_seq_stop()

warning: context imbalance in raw_seq_start() - wrong count at exit
warning: context imbalance in raw_seq_stop() - unexpected unlock

The root cause is the missing annotations at raw_seq_start()
and raw_seq_stop()
Add the missing __acquires(&h->lock) annotation
Add the missing __releases(&h->lock) annotation

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/raw.c