mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
Kernel: Stop allocating the PS2KeyboardDevice in the eternal heap
The PS2KeyboardDevice can be free'd in try_to_initialize if the initialization failed, resulting in an assertion.
This commit is contained in:
parent
59fec42a25
commit
df7d938808
|
@ -21,7 +21,6 @@ namespace Kernel {
|
||||||
class PS2KeyboardDevice final : public IRQHandler
|
class PS2KeyboardDevice final : public IRQHandler
|
||||||
, public KeyboardDevice
|
, public KeyboardDevice
|
||||||
, public I8042Device {
|
, public I8042Device {
|
||||||
AK_MAKE_ETERNAL
|
|
||||||
public:
|
public:
|
||||||
static RefPtr<PS2KeyboardDevice> try_to_initialize(const I8042Controller&);
|
static RefPtr<PS2KeyboardDevice> try_to_initialize(const I8042Controller&);
|
||||||
virtual ~PS2KeyboardDevice() override;
|
virtual ~PS2KeyboardDevice() override;
|
||||||
|
|
Loading…
Reference in a new issue