summaryrefslogtreecommitdiff
path: root/sys/dev/virtio/console
diff options
context:
space:
mode:
authorJakub Wojciech Klama <jceel@FreeBSD.org>2016-11-12 01:41:43 +0000
committerJakub Wojciech Klama <jceel@FreeBSD.org>2016-11-12 01:41:43 +0000
commitf7b1d7f419066531171443ed3f6d8dcdf893e5fb (patch)
tree6fee590de89a2719511207d8a19952064c9588c9 /sys/dev/virtio/console
parent892f0ab0ab9ff6d9088523248a6c851c2606cc06 (diff)
Notes
Diffstat (limited to 'sys/dev/virtio/console')
-rw-r--r--sys/dev/virtio/console/virtio_console.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/virtio/console/virtio_console.c b/sys/dev/virtio/console/virtio_console.c
index bfef07f1d94a..4c673c8d1293 100644
--- a/sys/dev/virtio/console/virtio_console.c
+++ b/sys/dev/virtio/console/virtio_console.c
@@ -600,7 +600,7 @@ vtcon_ctrl_event_enqueue(struct vtcon_softc *sc,
sglist_init(&sg, 2, segs);
error = sglist_append(&sg, control,
- sizeof(struct virtio_console_control));
+ sizeof(struct virtio_console_control) + VTCON_BULK_BUFSZ);
KASSERT(error == 0, ("%s: error %d adding control to sglist",
__func__, error));
@@ -633,7 +633,8 @@ vtcon_ctrl_event_requeue(struct vtcon_softc *sc,
{
int error;
- bzero(control, sizeof(struct virtio_console_control));
+ bzero(control, sizeof(struct virtio_console_control) +
+ VTCON_BULK_BUFSZ);
error = vtcon_ctrl_event_enqueue(sc, control);
KASSERT(error == 0,