Phonet: receive pipe control requests as out-of-band data
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
9641458d3e
commit
c41bd97f81
@ -220,7 +220,9 @@ static unsigned int pn_socket_poll(struct file *file, struct socket *sock,
|
||||
|
||||
if (!skb_queue_empty(&sk->sk_receive_queue))
|
||||
mask |= POLLIN | POLLRDNORM;
|
||||
else if (sk->sk_state == TCP_CLOSE_WAIT)
|
||||
if (!skb_queue_empty(&pn->ctrlreq_queue))
|
||||
mask |= POLLPRI;
|
||||
if (!mask && sk->sk_state == TCP_CLOSE_WAIT)
|
||||
return POLLHUP;
|
||||
|
||||
if (sk->sk_state == TCP_ESTABLISHED && pn->tx_credits)
|
||||
|
Reference in New Issue
Block a user