Skip to content

Commit 8afcf24

Browse files
committed
Kernel: Initialize SupriousInterruptHandler::m_enabled on construction
Found by PVS Studio Static Analysis
1 parent 0348d9a commit 8afcf24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Kernel/Interrupts/SpuriousInterruptHandler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class SpuriousInterruptHandler final : public GenericInterruptHandler {
3636
void enable_interrupt_vector();
3737
void disable_interrupt_vector();
3838
explicit SpuriousInterruptHandler(u8 interrupt_number);
39-
bool m_enabled;
39+
bool m_enabled { false };
4040
bool m_real_irq { false };
4141
RefPtr<IRQController> m_responsible_irq_controller;
4242
OwnPtr<GenericInterruptHandler> m_real_handler;

0 commit comments

Comments
 (0)