[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
This commit is contained in:
Dmitry Borisov
2024-02-11 20:24:15 +03:00
committed by Stanislav Motylkov
parent f4a38a05ec
commit adf534b284
+1
View File
@@ -112,6 +112,7 @@ IoConnectInterrupt(OUT PKINTERRUPT *InterruptObject,
}
/* And fail */
*InterruptObject = NULL;
return STATUS_INVALID_PARAMETER;
}