af_unix: Add missing annotation for unix_wait_for_peer()
authorJules Irenge <jbi.octave@gmail.com>
Sun, 23 Feb 2020 23:16:56 +0000 (23:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2020 21:26:49 +0000 (13:26 -0800)
commit48851e9e802de3ede4ce81c3f7896c63e841adbc
tree70eea4324c06cd2e090d0133074c01646d4ab205
parent3283ff2ea7ffd02decb1a813b97d4bbcdbb4e66a
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>
net/unix/af_unix.c