]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/unix/af_unix.c
net neigh: RCU conversion of neigh hash table
[mirror_ubuntu-artful-kernel.git] / net / unix / af_unix.c
index 0b39b2451ea59958c0819c51faf337d000cbb88d..c586da3f4f188f0b723cf43e77b431b292ab7b2e 100644 (file)
@@ -2033,11 +2033,10 @@ static unsigned int unix_poll(struct file *file, struct socket *sock, poll_table
        if (sk->sk_shutdown == SHUTDOWN_MASK)
                mask |= POLLHUP;
        if (sk->sk_shutdown & RCV_SHUTDOWN)
-               mask |= POLLRDHUP;
+               mask |= POLLRDHUP | POLLIN | POLLRDNORM;
 
        /* readable? */
-       if (!skb_queue_empty(&sk->sk_receive_queue) ||
-           (sk->sk_shutdown & RCV_SHUTDOWN))
+       if (!skb_queue_empty(&sk->sk_receive_queue))
                mask |= POLLIN | POLLRDNORM;
 
        /* Connection-based need to check for termination and startup */