summaryrefslogtreecommitdiff
path: root/Kernel/Bus/VirtIO/Console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Bus/VirtIO/Console.cpp')
-rw-r--r--Kernel/Bus/VirtIO/Console.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Kernel/Bus/VirtIO/Console.cpp b/Kernel/Bus/VirtIO/Console.cpp
index b46475286e..6aa6bde2bc 100644
--- a/Kernel/Bus/VirtIO/Console.cpp
+++ b/Kernel/Bus/VirtIO/Console.cpp
@@ -162,7 +162,9 @@ void Console::process_control_message(ControlMessage message)
return;
}
- m_ports.at(id) = MUST(DeviceManagement::the().try_create_device<VirtIO::ConsolePort>(id, *this));
+ auto port = MUST(DeviceManagement::the().try_create_device<VirtIO::ConsolePort>(id, *this));
+ port->init_receive_buffer({});
+ m_ports.at(id) = port;
ControlMessage ready_event {
.id = static_cast<u32>(id),