aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/unix/af_unix.c')
-rw-r--r--net/unix/af_unix.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index efb706e1d1c0..ac011b97097d 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -1914,8 +1914,10 @@ static int unix_dgram_recvmsg(struct socket *sock, struct msghdr *msg,
1914 goto out_unlock; 1914 goto out_unlock;
1915 } 1915 }
1916 1916
1917 wake_up_interruptible_sync_poll(&u->peer_wait, 1917 if (wq_has_sleeper(&u->peer_wait))
1918 POLLOUT | POLLWRNORM | POLLWRBAND); 1918 wake_up_interruptible_sync_poll(&u->peer_wait,
1919 POLLOUT | POLLWRNORM |
1920 POLLWRBAND);
1919 1921
1920 if (msg->msg_name) 1922 if (msg->msg_name)
1921 unix_copy_addr(msg, skb->sk); 1923 unix_copy_addr(msg, skb->sk);