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)
commit6c72b7740c8665671c0d5d3001490c0e41939c1f
treeb41cde517dfeda4e72294d8916caa4101ef9700b
parent887cf3d139347fed6e0a11b08cf7ed21f6f0fc3b
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