diff options
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/datagram.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/datagram.c b/net/core/datagram.c index b8ce6bf81188..aecddcc30401 100644 --- a/net/core/datagram.c +++ b/net/core/datagram.c | |||
@@ -500,6 +500,8 @@ unsigned int datagram_poll(struct file *file, struct socket *sock, | |||
500 | /* exceptional events? */ | 500 | /* exceptional events? */ |
501 | if (sk->sk_err || !skb_queue_empty(&sk->sk_error_queue)) | 501 | if (sk->sk_err || !skb_queue_empty(&sk->sk_error_queue)) |
502 | mask |= POLLERR; | 502 | mask |= POLLERR; |
503 | if (sk->sk_shutdown & RCV_SHUTDOWN) | ||
504 | mask |= POLLRDHUP; | ||
503 | if (sk->sk_shutdown == SHUTDOWN_MASK) | 505 | if (sk->sk_shutdown == SHUTDOWN_MASK) |
504 | mask |= POLLHUP; | 506 | mask |= POLLHUP; |
505 | 507 | ||