[NTOS:PNP] Check if APCs are enabled before waiting inside IopSynchronousCall

This commit is contained in:
Victor Perevertkin 2020-10-15 05:52:11 +03:00
parent 9eafb2971f
commit e3198fb644
No known key found for this signature in database
GPG key ID: C750B7222E9C7830

View file

@ -599,6 +599,8 @@ IopSynchronousCall(IN PDEVICE_OBJECT DeviceObject,
/* Call the driver */
Status = IoCallDriver(TopDeviceObject, Irp);
/* Otherwise we may get stuck here or have IoStatusBlock not populated */
ASSERT(!KeAreAllApcsDisabled());
if (Status == STATUS_PENDING)
{
/* Wait for it */