diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2020-02-23 23:16:56 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-24 13:26:49 -0800 |
commit | 48851e9e802de3ede4ce81c3f7896c63e841adbc (patch) | |
tree | 70eea4324c06cd2e090d0133074c01646d4ab205 | |
parent | 3283ff2ea7ffd02decb1a813b97d4bbcdbb4e66a (diff) | |
download | linux-48851e9e802de3ede4ce81c3f7896c63e841adbc.tar.gz linux-48851e9e802de3ede4ce81c3f7896c63e841adbc.tar.bz2 linux-48851e9e802de3ede4ce81c3f7896c63e841adbc.zip |
af_unix: Add missing annotation for unix_wait_for_peer()
Sparse reports a warning unix_wait_for_peer()
warning: context imbalance in unix_wait_for_peer() - unexpected unlock
The root cause is the missing annotation at unix_wait_for_peer()
Add the missing annotation __releases(&unix_sk(other)->lock)
Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/unix/af_unix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 62c12cb5763e..cbd7dc01e147 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -1207,6 +1207,7 @@ out: } static long unix_wait_for_peer(struct sock *other, long timeo) + __releases(&unix_sk(other)->lock) { struct unix_sock *u = unix_sk(other); int sched; |