https://git.reactos.org/?p=reactos.git;a=commitdiff;h=dc1d717b22adcd9b7f70e…
commit dc1d717b22adcd9b7f70e766c7b5e513b1808212
Author: Victor Perevertkin <victor.perevertkin(a)reactos.org>
AuthorDate: Fri Aug 21 08:50:12 2020 +0300
Commit: Victor Perevertkin <victor.perevertkin(a)reactos.org>
CommitDate: Fri Aug 21 08:50:12 2020 +0300
[NTOS:IO] Do not raise an unknown bugcheck inside the PiQueueDeviceAction
---
ntoskrnl/io/pnpmgr/devaction.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/ntoskrnl/io/pnpmgr/devaction.c b/ntoskrnl/io/pnpmgr/devaction.c
index 0351bec4dbd..67221e83e20 100644
--- a/ntoskrnl/io/pnpmgr/devaction.c
+++ b/ntoskrnl/io/pnpmgr/devaction.c
@@ -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));