]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: Add missing annotation for sctp_transport_walk_start()
authorJules Irenge <jbi.octave@gmail.com>
Sun, 23 Feb 2020 23:16:46 +0000 (23:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2020 21:26:48 +0000 (13:26 -0800)
commit84972210031e735859ef89a9c9abbec3efe1414f
treeb41cde517dfeda4e72294d8916caa4101ef9700b
parentf01316f099aecd29618260db22493743d5d204a0
sctp: Add missing annotation for sctp_transport_walk_start()

Sparse reports a warning at sctp_transport_walk_start()

warning: context imbalance in sctp_transport_walk_start
- wrong count at exit

The root cause is the missing annotation at sctp_transport_walk_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>
net/sctp/socket.c