diff options
Diffstat (limited to 'net/phonet/socket.c')
-rw-r--r-- | net/phonet/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/phonet/socket.c b/net/phonet/socket.c index c75aa5cdead5..ada2a35bf7a2 100644 --- a/net/phonet/socket.c +++ b/net/phonet/socket.c | |||
@@ -227,7 +227,7 @@ static unsigned int pn_socket_poll(struct file *file, struct socket *sock, | |||
227 | if (!mask && sk->sk_state == TCP_CLOSE_WAIT) | 227 | if (!mask && sk->sk_state == TCP_CLOSE_WAIT) |
228 | return POLLHUP; | 228 | return POLLHUP; |
229 | 229 | ||
230 | if (sk->sk_state == TCP_ESTABLISHED && pn->tx_credits) | 230 | if (sk->sk_state == TCP_ESTABLISHED && atomic_read(&pn->tx_credits)) |
231 | mask |= POLLOUT | POLLWRNORM | POLLWRBAND; | 231 | mask |= POLLOUT | POLLWRNORM | POLLWRBAND; |
232 | 232 | ||
233 | return mask; | 233 | return mask; |