From bae9b1d58764dff034eb8db471d8b60837015dc0 Mon Sep 17 00:00:00 2001 From: Sir Richard Date: Wed, 24 Nov 2010 14:39:23 +0000 Subject: [PATCH] [NTOS]: Erm, why is it that the ARM compiler detects this obvious bug, but x86 does not? Fix missing ShareCount zeroing when unlocking an MDL. svn path=/trunk/; revision=49770 --- reactos/ntoskrnl/mm/ARM3/mdlsup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/mm/ARM3/mdlsup.c b/reactos/ntoskrnl/mm/ARM3/mdlsup.c index b3449a366dc..f956bb7725d 100644 --- a/reactos/ntoskrnl/mm/ARM3/mdlsup.c +++ b/reactos/ntoskrnl/mm/ARM3/mdlsup.c @@ -271,7 +271,7 @@ MmFreePagesFromMdl(IN PMDL Mdl) // Pfn1->u3.e1.StartOfAllocation = 0; Pfn1->u3.e1.EndOfAllocation = 0; - Pfn1->u2.ShareCount == 0; + Pfn1->u2.ShareCount = 0; // // Dereference it