diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2020-02-23 23:16:47 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-24 13:26:49 -0800 |
commit | b77b4f634e5f7b0477e682ad643cbad43b7d9d93 (patch) | |
tree | f81a3e18360823741ae4097414ce7008b2c9cdf4 /net/sctp | |
parent | 6c72b7740c8665671c0d5d3001490c0e41939c1f (diff) |
sctp: Add missing annotation for sctp_transport_walk_stop()
Sparse reports a warning at sctp_transport_walk_stop()
warning: context imbalance in sctp_transport_walk_stop
- wrong count at exit
The root cause is the missing annotation at sctp_transport_walk_stop()
Add the missing __releases(RCU) annotation
Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index 05be67bb0474..fed26a1e9518 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c @@ -5340,7 +5340,7 @@ void sctp_transport_walk_start(struct rhashtable_iter *iter) __acquires(RCU) rhashtable_walk_start(iter); } -void sctp_transport_walk_stop(struct rhashtable_iter *iter) +void sctp_transport_walk_stop(struct rhashtable_iter *iter) __releases(RCU) { rhashtable_walk_stop(iter); rhashtable_walk_exit(iter); |