mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
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>
This commit is contained in:
parent
3283ff2ea7
commit
48851e9e80
1 changed files with 1 additions and 0 deletions
|
@ -1207,6 +1207,7 @@ static int unix_dgram_connect(struct socket *sock, struct sockaddr *addr,
|
|||
}
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue