[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
This commit is contained in:
Sir Richard 2010-11-24 14:39:23 +00:00
parent 4ef8ef5ae9
commit bae9b1d587

View file

@ -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