From 135c87015c6624cb953a9edf41282f00cc716b39 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 8 Oct 2025 20:36:18 -0400 Subject: kern/amd64: intr: Zero the handler structure Ensure no uninitialized garbage ends up in the handler structure after we've allocated it. Signed-off-by: Ian Moffett --- src/sys/arch/amd64/mainbus/intr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sys') diff --git a/src/sys/arch/amd64/mainbus/intr.c b/src/sys/arch/amd64/mainbus/intr.c index 73fe8bd..b9b9139 100644 --- a/src/sys/arch/amd64/mainbus/intr.c +++ b/src/sys/arch/amd64/mainbus/intr.c @@ -58,6 +58,8 @@ intr_register(const struct intr_hand *ih) return NULL; } + memset(ih_new, 0, sizeof(*ih_new)); + /* * The first 0x20 to 0x5F interrupt vectors are * reserved for I/O APIC input pins -- cgit v1.2.3