summaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r--net/ipv4/udp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index f81f969f9c06..bfaefe560b5c 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -2501,12 +2501,12 @@ __poll_t udp_poll(struct file *file, struct socket *sock, poll_table *wait)
2501 struct sock *sk = sock->sk; 2501 struct sock *sk = sock->sk;
2502 2502
2503 if (!skb_queue_empty(&udp_sk(sk)->reader_queue)) 2503 if (!skb_queue_empty(&udp_sk(sk)->reader_queue))
2504 mask |= POLLIN | POLLRDNORM; 2504 mask |= EPOLLIN | EPOLLRDNORM;
2505 2505
2506 /* Check for false positives due to checksum errors */ 2506 /* Check for false positives due to checksum errors */
2507 if ((mask & POLLRDNORM) && !(file->f_flags & O_NONBLOCK) && 2507 if ((mask & EPOLLRDNORM) && !(file->f_flags & O_NONBLOCK) &&
2508 !(sk->sk_shutdown & RCV_SHUTDOWN) && first_packet_length(sk) == -1) 2508 !(sk->sk_shutdown & RCV_SHUTDOWN) && first_packet_length(sk) == -1)
2509 mask &= ~(POLLIN | POLLRDNORM); 2509 mask &= ~(EPOLLIN | EPOLLRDNORM);
2510 2510
2511 return mask; 2511 return mask;
2512 2512