diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index 62c12cb5763e6d0ec4ef7daefd6836b6588b7185..cbd7dc01e147040e3691f3ab5c174ee370adccfa 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;