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:
parent
d7e5521a04
commit
42c5df7256
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue