[ros-diffs] [sir_richard] 49440: [NTOS]: Fix a bug in the MDL Code which would dereference a completely bogus page frame index.

sir_richard at svn.reactos.org sir_richard at svn.reactos.org
Tue Nov 2 14:58:11 UTC 2010


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?rev=49440&r1=49439&r2=49440&view=diff
==============================================================================
--- 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
         {




More information about the Ros-diffs mailing list