mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +00:00
[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:
parent
988a0bb06f
commit
92563c84b9
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue