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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
index e17ecf5d42b5..70f1c38fa14c 100644
--- a/drivers/char/virtio_console.c
+++ b/drivers/char/virtio_console.c
@@ -626,6 +626,9 @@ static ssize_t port_fops_write(struct file *filp, const char __user *ubuf,
626 if (ret < 0) 626 if (ret < 0)
627 return ret; 627 return ret;
628 } 628 }
629 /* Port got hot-unplugged. */
630 if (!port->guest_connected)
631 return -ENODEV;
629 632
630 count = min((size_t)(32 * 1024), count); 633 count = min((size_t)(32 * 1024), count);
631 634