1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:57:45 +00:00

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
parent 0348d9afbe
commit 8afcf2441c

View file

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