diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2020-02-23 23:16:45 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-24 13:26:48 -0800 |
commit | 887cf3d139347fed6e0a11b08cf7ed21f6f0fc3b (patch) | |
tree | 3a0bfc5bee89e93832165976e080e428b64065cb | |
parent | 28b380e28925cad4ccc70b1cd2faef7aa7ba707d (diff) | |
download | linux-stable-887cf3d139347fed6e0a11b08cf7ed21f6f0fc3b.tar.gz linux-stable-887cf3d139347fed6e0a11b08cf7ed21f6f0fc3b.tar.bz2 linux-stable-887cf3d139347fed6e0a11b08cf7ed21f6f0fc3b.zip |
sctp: Add missing annotation for sctp_err_finish()
Sparse reports a warning at sctp_err_finish()
warning: context imbalance in sctp_err_finish() - unexpected unlock
The root cause is a missing annotation at sctp_err_finish()
Add the missing __releases(&((__sk)->sk_lock.slock)) annotation
Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/sctp/input.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c index efaaefc3bb1c..55d4fc6f371d 100644 --- a/net/sctp/input.c +++ b/net/sctp/input.c @@ -548,6 +548,7 @@ out: /* Common cleanup code for icmp/icmpv6 error handler. */ void sctp_err_finish(struct sock *sk, struct sctp_transport *t) + __releases(&((__sk)->sk_lock.slock)) { bh_unlock_sock(sk); sctp_transport_put(t); |