mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 08:36:12 +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
Notes:
sideshowbarker
2024-07-18 09:05:16 +09:00
Author: https://github.com/X-yl
Commit: 42c5df7256
Pull-request: https://github.com/SerenityOS/serenity/pull/8690
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/ccapitalK
Reviewed-by: https://github.com/tomuta
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