[ntoskrnl/io/pnpmgr]
authorMichael Martin <michael.martin@reactos.org>
Fri, 10 Sep 2010 19:45:01 +0000 (19:45 +0000)
committerMichael Martin <michael.martin@reactos.org>
Fri, 10 Sep 2010 19:45:01 +0000 (19:45 +0000)
- Fix incorrect POOL_TYPE allocation in IoInvalidateDeviceRelations. This function can be called at DISPATCH_LEVEL, which requires NonPagedPool POOL_TYPE.

svn path=/trunk/; revision=48734

reactos/ntoskrnl/io/pnpmgr/pnpmgr.c

index 35e8efc..69e013c 100644 (file)
@@ -3655,7 +3655,7 @@ IoInvalidateDeviceRelations(
     PIO_WORKITEM WorkItem;
     PINVALIDATE_DEVICE_RELATION_DATA Data;
 
-    Data = ExAllocatePool(PagedPool, sizeof(INVALIDATE_DEVICE_RELATION_DATA));
+    Data = ExAllocatePool(NonPagedPool, sizeof(INVALIDATE_DEVICE_RELATION_DATA));
     if (!Data)
         return;
     WorkItem = IoAllocateWorkItem(DeviceObject);