From: Jules Irenge Date: Sun, 23 Feb 2020 23:16:45 +0000 (+0000) Subject: sctp: Add missing annotation for sctp_err_finish() X-Git-Tag: v5.7-rc1~146^2~351 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=887cf3d139347fed6e0a11b08cf7ed21f6f0fc3b;p=users%2Fjedix%2Flinux-maple.git 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 Signed-off-by: David S. Miller --- 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);