Commit 6c72b774 authored by Jules Irenge's avatar Jules Irenge Committed by David S. Miller

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: default avatarJules Irenge <jbi.octave@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 887cf3d1
...@@ -5333,7 +5333,7 @@ int sctp_get_sctp_info(struct sock *sk, struct sctp_association *asoc, ...@@ -5333,7 +5333,7 @@ int sctp_get_sctp_info(struct sock *sk, struct sctp_association *asoc,
EXPORT_SYMBOL_GPL(sctp_get_sctp_info); EXPORT_SYMBOL_GPL(sctp_get_sctp_info);
/* use callback to avoid exporting the core structure */ /* 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); rhltable_walk_enter(&sctp_transport_hashtable, iter);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment