1
Fork 0
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:
Liav A 2022-07-13 20:20:27 +03:00 committed by Linus Groh
parent f052b9574c
commit cd8bcd06c6
2 changed files with 6 additions and 4 deletions

View file

@ -36,7 +36,7 @@ public:
private:
void clear_vga_row(u16 row);
VGATextModeConsole();
explicit VGATextModeConsole(NonnullOwnPtr<Memory::Region>);
mutable Spinlock m_vga_lock;