[ros-diffs] [royce] 14319: patch by Filip Navara:

royce at svn.reactos.com royce at svn.reactos.com
Fri Mar 25 20:34:28 CET 2005


patch by Filip Navara:
IopCreateDeviceNode should allocate from NonPagedPool, not PagedPool...
(the memory is accessed at DISPATCH_LEVEL)
Modified: trunk/reactos/ntoskrnl/io/pnpmgr.c
  _____  

Modified: trunk/reactos/ntoskrnl/io/pnpmgr.c
--- trunk/reactos/ntoskrnl/io/pnpmgr.c	2005-03-25 19:28:55 UTC (rev
14318)
+++ trunk/reactos/ntoskrnl/io/pnpmgr.c	2005-03-25 19:34:26 UTC (rev
14319)
@@ -508,7 +508,7 @@

   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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050325/90573bfa/attachment.html


More information about the Ros-diffs mailing list