Skip to content

Commit

Permalink
Fix incrorrect queue index in init_queues()
Browse files Browse the repository at this point in the history
Fix #219

Signed-off-by: Wei Liu <[email protected]>
  • Loading branch information
liuw1 committed Apr 22, 2024
1 parent 436786b commit 4fe5a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices/virtio_serial/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ impl VirtioSerial {
queue_address += queue_layout.size() as u64;
let port0_transmitq = Self::create_queue(
self.virtio.as_ref(),
PORT0_RECEIVEQ,
PORT0_TRANSMITQ,
queue_address,
QUEUE_SIZE as u16,
)?;
Expand Down

0 comments on commit 4fe5a6f

Please sign in to comment.