patch by Filip Navara:
authorRoyce Mitchell III <royce3@ev1.net>
Fri, 25 Mar 2005 19:34:26 +0000 (19:34 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Fri, 25 Mar 2005 19:34:26 +0000 (19:34 +0000)
IopCreateDeviceNode should allocate from NonPagedPool, not PagedPool... (the memory is accessed at DISPATCH_LEVEL)

svn path=/trunk/; revision=14319

reactos/ntoskrnl/io/pnpmgr.c

index a1b27b4..d706ba0 100644 (file)
@@ -508,7 +508,7 @@ IopCreateDeviceNode(PDEVICE_NODE ParentNode,
   DPRINT("ParentNode %x PhysicalDeviceObject %x\n",
     ParentNode, PhysicalDeviceObject);
 
   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;
   if (!Node)
     {
       return STATUS_INSUFFICIENT_RESOURCES;