diff --git a/[refs] b/[refs] index e170c9578540..872367224d50 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 800ba5eabf13485fecbf468f6b2999608413d176 +refs/heads/master: eb34f12b509823571e88b791ae2088280943894f diff --git a/trunk/drivers/char/virtio_console.c b/trunk/drivers/char/virtio_console.c index eecb1f9e2e6b..db244b5b6c8a 100644 --- a/trunk/drivers/char/virtio_console.c +++ b/trunk/drivers/char/virtio_console.c @@ -1439,6 +1439,10 @@ static void remove_port_data(struct port *port) /* Remove buffers we queued up for the Host to send us data in. */ while ((buf = virtqueue_detach_unused_buf(port->in_vq))) free_buf(buf); + + /* Free pending buffers from the out-queue. */ + while ((buf = virtqueue_detach_unused_buf(port->out_vq))) + free_buf(buf); } /*