From 0eb260e7ea5aeb972be4b8e5c73e04d6c901f81f Mon Sep 17 00:00:00 2001 From: Sir Richard Date: Fri, 19 Feb 2010 18:23:07 +0000 Subject: [PATCH] [NTOS]: Fix an off-by-! error which caused MDL page allocation to use used pages instead of free pages. svn path=/trunk/; revision=45623 --- reactos/ntoskrnl/mm/freelist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/mm/freelist.c b/reactos/ntoskrnl/mm/freelist.c index 4dd1c7c7245..4eec29d95ca 100644 --- a/reactos/ntoskrnl/mm/freelist.c +++ b/reactos/ntoskrnl/mm/freelist.c @@ -516,7 +516,7 @@ MiAllocatePagesForMdl(IN PHYSICAL_ADDRESS LowAddress, // // 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; // -- 2.17.1