Kernel: Initialize SupriousInterruptHandler::m_enabled on construction

Found by PVS Studio Static Analysis
This commit is contained in:
Brian Gianforcaro 2021-12-22 01:32:55 -08:00 committed by Brian Gianforcaro
commit 8afcf2441c
Notes: sideshowbarker 2024-07-17 22:21:15 +09:00

View file

@ -36,7 +36,7 @@ private:
void enable_interrupt_vector();
void disable_interrupt_vector();
explicit SpuriousInterruptHandler(u8 interrupt_number);
bool m_enabled;
bool m_enabled { false };
bool m_real_irq { false };
RefPtr<IRQController> m_responsible_irq_controller;
OwnPtr<GenericInterruptHandler> m_real_handler;