diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2020-02-24 02:16:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-25 00:26:48 +0300 |
commit | 6c72b7740c8665671c0d5d3001490c0e41939c1f (patch) | |
tree | b41cde517dfeda4e72294d8916caa4101ef9700b /net/sctp | |
parent | 887cf3d139347fed6e0a11b08cf7ed21f6f0fc3b (diff) | |
download | linux-6c72b7740c8665671c0d5d3001490c0e41939c1f.tar.xz |
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>
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 1b56fc440606..05be67bb0474 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c @@ -5333,7 +5333,7 @@ int sctp_get_sctp_info(struct sock *sk, struct sctp_association *asoc, EXPORT_SYMBOL_GPL(sctp_get_sctp_info); /* use callback to avoid exporting the core structure */ -void sctp_transport_walk_start(struct rhashtable_iter *iter) +void sctp_transport_walk_start(struct rhashtable_iter *iter) __acquires(RCU) { rhltable_walk_enter(&sctp_transport_hashtable, iter); |