[NTOS:IO] Do not raise an unknown bugcheck inside the PiQueueDeviceAction

This commit is contained in:
Victor Perevertkin 2020-08-21 08:50:12 +03:00
parent acd07e725e
commit dc1d717b22
No known key found for this signature in database
GPG key ID: C750B7222E9C7830

View file

@ -2478,12 +2478,7 @@ PiQueueDeviceAction(
PDEVICE_ACTION_REQUEST Request;
KIRQL OldIrql;
Request = ExAllocatePoolWithTag(NonPagedPool, sizeof(*Request), TAG_IO);
if (!Request)
{
KeBugCheckEx(PNP_DETECTED_FATAL_ERROR, 0x3, 0, 0, 0);
return;
}
Request = ExAllocatePoolWithTag(NonPagedPoolMustSucceed, sizeof(*Request), TAG_IO);
DPRINT("PiQueueDeviceAction: DeviceObject - %p, Request - %p, Action - %s\n",
DeviceObject, Request, ActionToStr(Action));