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:
Idan Horowitz 2021-05-20 18:45:08 +03:00 committed by Andreas Kling
parent 59fec42a25
commit df7d938808

View file

@ -21,7 +21,6 @@ namespace Kernel {
class PS2KeyboardDevice final : public IRQHandler
, public KeyboardDevice
, public I8042Device {
AK_MAKE_ETERNAL
public:
static RefPtr<PS2KeyboardDevice> try_to_initialize(const I8042Controller&);
virtual ~PS2KeyboardDevice() override;