mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:08:12 +00:00
Kernel/Graphics: Allocate VGA window region according to the usual rules
We should not allocate a kernel region inside the constructor of the VGATextModeConsole class. We do use MUST() because allocation cannot fail at this point, but that happens in the static factory method instead.
This commit is contained in:
parent
f052b9574c
commit
cd8bcd06c6
2 changed files with 6 additions and 4 deletions
|
@ -36,7 +36,7 @@ public:
|
|||
private:
|
||||
void clear_vga_row(u16 row);
|
||||
|
||||
VGATextModeConsole();
|
||||
explicit VGATextModeConsole(NonnullOwnPtr<Memory::Region>);
|
||||
|
||||
mutable Spinlock m_vga_lock;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue