|
@@ -5707,13 +5707,12 @@ unsigned int sctp_poll(struct file *file, struct socket *sock, poll_table *wait)
|
|
|
if (sk->sk_err || !skb_queue_empty(&sk->sk_error_queue))
|
|
|
mask |= POLLERR;
|
|
|
if (sk->sk_shutdown & RCV_SHUTDOWN)
|
|
|
- mask |= POLLRDHUP;
|
|
|
+ mask |= POLLRDHUP | POLLIN | POLLRDNORM;
|
|
|
if (sk->sk_shutdown == SHUTDOWN_MASK)
|
|
|
mask |= POLLHUP;
|
|
|
|
|
|
/* Is it readable? Reconsider this code with TCP-style support. */
|
|
|
- if (!skb_queue_empty(&sk->sk_receive_queue) ||
|
|
|
- (sk->sk_shutdown & RCV_SHUTDOWN))
|
|
|
+ if (!skb_queue_empty(&sk->sk_receive_queue))
|
|
|
mask |= POLLIN | POLLRDNORM;
|
|
|
|
|
|
/* The association is either gone or not ready. */
|