diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-08 20:36:18 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-08 20:36:18 -0400 |
commit | 135c87015c6624cb953a9edf41282f00cc716b39 (patch) | |
tree | 31d718051eaaf460cc9fed31a7cf59b314e0eb64 /src | |
parent | ae42383d5d1c5b2a4306b2991ac13153f7e562bf (diff) |
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 <ian@osmora.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/sys/arch/amd64/mainbus/intr.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |