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
Notes: sideshowbarker 2024-07-18 09:05:16 +09:00

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);