From 8ac9a0948411c5bf2ce8baead0c0f51db345820b Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Fri, 25 Mar 2005 19:34:26 +0000 Subject: [PATCH] patch by Filip Navara: IopCreateDeviceNode should allocate from NonPagedPool, not PagedPool... (the memory is accessed at DISPATCH_LEVEL) svn path=/trunk/; revision=14319 --- reactos/ntoskrnl/io/pnpmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/io/pnpmgr.c b/reactos/ntoskrnl/io/pnpmgr.c index a1b27b48603..d706ba06031 100644 --- a/reactos/ntoskrnl/io/pnpmgr.c +++ b/reactos/ntoskrnl/io/pnpmgr.c @@ -508,7 +508,7 @@ IopCreateDeviceNode(PDEVICE_NODE ParentNode, DPRINT("ParentNode %x PhysicalDeviceObject %x\n", ParentNode, PhysicalDeviceObject); - Node = (PDEVICE_NODE)ExAllocatePool(PagedPool, sizeof(DEVICE_NODE)); + Node = (PDEVICE_NODE)ExAllocatePool(NonPagedPool, sizeof(DEVICE_NODE)); if (!Node) { return STATUS_INSUFFICIENT_RESOURCES; -- 2.17.1