diff --git a/dep/sddf b/dep/sddf index 2cae425f..b53b104d 160000 --- a/dep/sddf +++ b/dep/sddf @@ -1 +1 @@ -Subproject commit 2cae425f735d6dd214bdb285e89275a87625bba3 +Subproject commit b53b104df3bd66d5820c489318960acec7a97775 diff --git a/src/virtio/console.c b/src/virtio/console.c index c21311a9..35f585d4 100644 --- a/src/virtio/console.c +++ b/src/virtio/console.c @@ -140,7 +140,7 @@ static bool virtio_console_handle_tx(struct virtio_device *dev) transferred = true; } - memcpy(console->txq.data_region + (console->txq.queue->tail % console->txq.size), + memcpy(console->txq.data_region + (console->txq.queue->tail % console->txq.capacity), (char *)(desc.addr + (desc.len - bytes_remain)), to_transfer); serial_update_visible_tail(&console->txq, console->txq.queue->tail + to_transfer);