Tag the MDL buffer
authorAlex Ionescu <aionescu@gmail.com>
Wed, 25 May 2005 02:20:01 +0000 (02:20 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Wed, 25 May 2005 02:20:01 +0000 (02:20 +0000)
svn path=/trunk/; revision=15491

reactos/ntoskrnl/mm/mdl.c

index 488988e..d51fefd 100644 (file)
@@ -85,7 +85,9 @@ MmInitializeMdlImplementation(VOID)
    }
    MmUnlockAddressSpace(MmGetKernelAddressSpace());
 
-   Buffer = ExAllocatePool(NonPagedPool, MI_MDL_MAPPING_REGION_SIZE / (PAGE_SIZE * 8));
+   Buffer = ExAllocatePoolWithTag(NonPagedPool, 
+                                  MI_MDL_MAPPING_REGION_SIZE / (PAGE_SIZE * 8),
+                                  TAG_MDL);
 
    RtlInitializeBitMap(&MiMdlMappingRegionAllocMap, Buffer, MI_MDL_MAPPING_REGION_SIZE / PAGE_SIZE);
    RtlClearAllBits(&MiMdlMappingRegionAllocMap);