Author: sir_richard
Date: Tue Nov 2 14:58:10 2010
New Revision: 49440
URL:
http://svn.reactos.org/svn/reactos?rev=49440&view=rev
Log:
[NTOS]: Fix a bug in the MDL Code which would dereference a completely bogus page frame
index.
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/mdlsup.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/mdlsup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/mdlsup.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/mdlsup.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/mdlsup.c [iso-8859-1] Tue Nov 2 14:58:10 2010
@@ -1343,7 +1343,7 @@
InterlockedExchangeAddSizeT(&MmSystemLockPagesCount, -1);
/* Do the last dereference, we're done here */
- MiDecrementReferenceCount(Pfn1, *MdlPages);
+ MiDecrementReferenceCount(Pfn1, MiGetPfnEntryIndex(Pfn1));
}
else
{