[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-06 19:45:24 +06:00 committed by Stanislav Motylkov
parent f4a38a05ec
commit adf534b284
1 changed files with 1 additions and 0 deletions

View File

@ -112,6 +112,7 @@ IoConnectInterrupt(OUT PKINTERRUPT *InterruptObject,
}
/* And fail */
*InterruptObject = NULL;
return STATUS_INVALID_PARAMETER;
}