[ros-diffs] [sir_richard] 45623: [NTOS]: Fix an off-by-! error which caused MDL page allocation to use used pages instead of free pages.

sir_richard at svn.reactos.org sir_richard at svn.reactos.org
Fri Feb 19 19:23:07 CET 2010


Author: sir_richard
Date: Fri Feb 19 19:23:07 2010
New Revision: 45623

URL: http://svn.reactos.org/svn/reactos?rev=45623&view=rev
Log:
[NTOS]: Fix an off-by-! error which caused MDL page allocation to use used pages instead of free pages.

Modified:
    trunk/reactos/ntoskrnl/mm/freelist.c

Modified: trunk/reactos/ntoskrnl/mm/freelist.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/freelist.c?rev=45623&r1=45622&r2=45623&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/mm/freelist.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/freelist.c [iso-8859-1] Fri Feb 19 19:23:07 2010
@@ -516,7 +516,7 @@
                 //
                 // Make sure it's free and if this is our first pass, zeroed
                 //
-                if (!MiIsPfnInUse(Pfn1)) continue;
+                if (MiIsPfnInUse(Pfn1)) continue;
                 if ((Pfn1->u3.e1.PageLocation == ZeroedPageList) != LookForZeroedPages) continue;
                 
                 //




More information about the Ros-diffs mailing list