Don't allocate section segments in nonpaged pool
Modified: trunk/reactos/ntoskrnl/mm/section.c
_____
Modified: trunk/reactos/ntoskrnl/mm/section.c
--- trunk/reactos/ntoskrnl/mm/section.c 2005-05-26 13:40:40 UTC (rev
15505)
+++ trunk/reactos/ntoskrnl/mm/section.c 2005-05-26 13:41:04 UTC (rev
15506)
@@ -198,7 +198,7 @@
{
Table =
Segment->PageDirectory.PageTables[DirectoryOffset] =
- ExAllocatePoolWithTag(NonPagedPool,
sizeof(SECTION_PAGE_TABLE),
+ ExAllocatePoolWithTag(PagedPool,
sizeof(SECTION_PAGE_TABLE),
TAG_SECTION_PAGE_TABLE);
if (Table == NULL)
{
@@ -2183,7 +2183,7 @@
KeInitializeSpinLock(&Section->ViewListLock);
Section->FileObject = NULL;
Section->MaximumSize = MaximumSize;
- Segment = ExAllocatePoolWithTag(NonPagedPool,
sizeof(MM_SECTION_SEGMENT),
+ Segment = ExAllocatePoolWithTag(PagedPool,
sizeof(MM_SECTION_SEGMENT),
TAG_MM_SECTION_SEGMENT);
if (Segment == NULL)
{
@@ -2387,7 +2387,7 @@
*/
if (FileObject->SectionObjectPointer->DataSectionObject == NULL)
{
- Segment = ExAllocatePoolWithTag(NonPagedPool,
sizeof(MM_SECTION_SEGMENT),
+ Segment = ExAllocatePoolWithTag(PagedPool,
sizeof(MM_SECTION_SEGMENT),
TAG_MM_SECTION_SEGMENT);
if (Segment == NULL)
{
@@ -3073,7 +3073,7 @@
SizeOfSegments = sizeof(MM_SECTION_SEGMENT) *
ImageSectionObject->NrSegments;
- Segments = ExAllocatePoolWithTag(NonPagedPool,
+ Segments = ExAllocatePoolWithTag(PagedPool,
SizeOfSegments,
TAG_MM_SECTION_SEGMENT);
@@ -3188,7 +3188,7 @@
{
NTSTATUS StatusExeFmt;
- ImageSectionObject = ExAllocatePoolWithTag(NonPagedPool,
sizeof(MM_IMAGE_SECTION_OBJECT), TAG_MM_SECTION_SEGMENT);
+ ImageSectionObject = ExAllocatePoolWithTag(PagedPool,
sizeof(MM_IMAGE_SECTION_OBJECT), TAG_MM_SECTION_SEGMENT);
if (ImageSectionObject == NULL)
{
ObDereferenceObject(FileObject);