aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/virtio_console.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/virtio_console.c')
-rw-r--r--drivers/char/virtio_console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
index 942a9826bd23..2f2e31b58b34 100644
--- a/drivers/char/virtio_console.c
+++ b/drivers/char/virtio_console.c
@@ -642,7 +642,7 @@ static unsigned int port_fops_poll(struct file *filp, poll_table *wait)
642 poll_wait(filp, &port->waitqueue, wait); 642 poll_wait(filp, &port->waitqueue, wait);
643 643
644 ret = 0; 644 ret = 0;
645 if (port->inbuf) 645 if (!will_read_block(port))
646 ret |= POLLIN | POLLRDNORM; 646 ret |= POLLIN | POLLRDNORM;
647 if (!will_write_block(port)) 647 if (!will_write_block(port))
648 ret |= POLLOUT; 648 ret |= POLLOUT;