[NTOS]: Fix a bug in the MDL Code which would dereference a completely bogus page frame index.

svn path=/trunk/; revision=49440
This commit is contained in:
Sir Richard 2010-11-02 14:58:10 +00:00
parent c7b69d59e3
commit dae4714960

View file

@ -1343,7 +1343,7 @@ MmUnlockPages(IN PMDL Mdl)
InterlockedExchangeAddSizeT(&MmSystemLockPagesCount, -1);
/* Do the last dereference, we're done here */
MiDecrementReferenceCount(Pfn1, *MdlPages);
MiDecrementReferenceCount(Pfn1, MiGetPfnEntryIndex(Pfn1));
}
else
{