[ros-diffs] [sir_richard] 47588: [NTOS]: In MiInitializePfnForOtherProcess, should increment the sharecount of the page table PFN entry, not the PFN entry of the PTE itself. Spotted by Stefan100.

sir_richard at svn.reactos.org sir_richard at svn.reactos.org
Sat Jun 5 16:55:18 CEST 2010


Author: sir_richard
Date: Sat Jun  5 16:55:17 2010
New Revision: 47588

URL: http://svn.reactos.org/svn/reactos?rev=47588&view=rev
Log:
[NTOS]: In MiInitializePfnForOtherProcess, should increment the sharecount of the page table PFN entry, not the PFN entry of the PTE itself. Spotted by Stefan100.

Modified:
    trunk/reactos/ntoskrnl/mm/ARM3/pfnlist.c

Modified: trunk/reactos/ntoskrnl/mm/ARM3/pfnlist.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/pfnlist.c?rev=47588&r1=47587&r2=47588&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/pfnlist.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/pfnlist.c [iso-8859-1] Sat Jun  5 16:55:17 2010
@@ -791,7 +791,7 @@
         Pfn1->u4.PteFrame = PteFrame;
         
         /* Increase its share count so we don't get rid of it */    
-        Pfn1 = MiGetPfnEntry(PageFrameIndex);
+        Pfn1 = MiGetPfnEntry(PteFrame);
         Pfn1->u2.ShareCount++;
     }
 }




More information about the Ros-diffs mailing list