1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:17:45 +00:00

Kernel: Fix inverted check in VirtIOConsolePort

We should really only try to open if we're closed. Oops :P
This commit is contained in:
x-yl 2021-07-12 17:55:02 +04:00 committed by Andreas Kling
parent d7e5521a04
commit 42c5df7256

View file

@ -158,7 +158,7 @@ String VirtIOConsolePort::device_name() const
KResultOr<NonnullRefPtr<FileDescription>> VirtIOConsolePort::open(int options)
{
if (m_open)
if (!m_open)
m_console.send_open_control_message(m_port, true);
return File::open(options);