Author: mbosma
Date: Sat Apr 15 16:08:32 2006
New Revision: 21597
URL:
http://svn.reactos.ru/svn/reactos?rev=21597&view=rev
Log:
Commit Patch from Bug 1360
Modified:
branches/cache_manager_rewrite/reactos/ntoskrnl/mm/section.c
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/mm/section.c
URL:
http://svn.reactos.ru/svn/reactos/branches/cache_manager_rewrite/reactos/nt…
==============================================================================
--- branches/cache_manager_rewrite/reactos/ntoskrnl/mm/section.c (original)
+++ branches/cache_manager_rewrite/reactos/ntoskrnl/mm/section.c Sat Apr 15 16:08:32 2006
@@ -353,7 +353,9 @@
KeWaitForSingleObject(&Event, Executive, KernelMode, FALSE,
NULL);
Status = Iosb.Status;
}
- MmUnmapLockedPages(Mdl->MappedSystemVa, Mdl);
+
+ if (Mdl->MdlFlags & MDL_MAPPED_TO_SYSTEM_VA)
+ MmUnmapLockedPages(Mdl->MappedSystemVa, Mdl);
}
MmReleasePageMemoryConsumer(MC_USER, PFN_FROM_SSE(Entry));
}