https://git.reactos.org/?p=reactos.git;a=commitdiff;h=adf534b28418fc18f66fa1...
commit adf534b28418fc18f66fa1ea7cd4726a86873fba Author: Dmitry Borisov di.sean@protonmail.com AuthorDate: Tue Feb 6 19:45:24 2024 +0600 Commit: Stanislav Motylkov x86corez@gmail.com CommitDate: Sun Feb 11 20:24:15 2024 +0300
[NTOS:IO] Initialize InterruptObject to NULL on failure
Fixes a pool corruption when trying to handle IRP_MN_REMOVE_DEVICE in the driver
CORE-17256 --- ntoskrnl/io/iomgr/irq.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/ntoskrnl/io/iomgr/irq.c b/ntoskrnl/io/iomgr/irq.c index f82d58d44c1..2fed5d1703c 100644 --- a/ntoskrnl/io/iomgr/irq.c +++ b/ntoskrnl/io/iomgr/irq.c @@ -112,6 +112,7 @@ IoConnectInterrupt(OUT PKINTERRUPT *InterruptObject, }
/* And fail */ + *InterruptObject = NULL; return STATUS_INVALID_PARAMETER; }