[ISAPNP] Make sure that APCs are disabled before acquiring a lock

Note: We could just use a fast mutex instead
This commit is contained in:
Dmitry Borisov 2024-07-06 00:50:03 +06:00
parent 6091dde0d3
commit fdc1d96dc1

View file

@ -111,6 +111,8 @@ FORCEINLINE
VOID
IsaPnpAcquireBusDataLock(VOID)
{
ASSERT(PsGetCurrentProcess() == PsInitialSystemProcess);
KeWaitForSingleObject(&BusSyncEvent, Executive, KernelMode, FALSE, NULL);
}
@ -129,6 +131,8 @@ VOID
IsaPnpAcquireDeviceDataLock(
_In_ PISAPNP_FDO_EXTENSION FdoExt)
{
ASSERT(PsGetCurrentProcess() == PsInitialSystemProcess);
KeWaitForSingleObject(&FdoExt->DeviceSyncEvent, Executive, KernelMode, FALSE, NULL);
}