Skip to content

Commit 48851e9

Browse files
irengedavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3283ff2 commit 48851e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/unix/af_unix.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,7 @@ static int unix_dgram_connect(struct socket *sock, struct sockaddr *addr,
12071207
}
12081208

12091209
static long unix_wait_for_peer(struct sock *other, long timeo)
1210+
__releases(&unix_sk(other)->lock)
12101211
{
12111212
struct unix_sock *u = unix_sk(other);
12121213
int sched;

0 commit comments

Comments
 (0)