[WDMAUD_KERNEL]

- Unlock locked pages before freeing the mdl
- Fixes assertion hit 'Assertion 'OldRefCount < 2500' failed at ARM³::MDLSUP line 1008'
- Fixes playback / recording of longer audio files

svn path=/trunk/; revision=49355
This commit is contained in:
Johannes Anderwald 2010-10-30 15:15:22 +00:00
parent 988a0bb06f
commit 92563c84b9

View file

@ -464,6 +464,13 @@ WdmAudReadWrite(
return SetIrpIoStatus(Irp, Status, 0);
}
/* check if mdl is locked */
if (Mdl->MdlFlags & MDL_PAGES_LOCKED)
{
/* unlock pages */
MmUnlockPages(Mdl);
}
/* now free the mdl */
IoFreeMdl(Mdl);