mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:03:02 +00:00
- Don't increase Irp->AssociatedIrp.IrpCount in IoMakeAssociatedIrp. The caller is responsible for doing it.
- Don't unlock MDLs of associated Irps. svn path=/trunk/; revision=10585
This commit is contained in:
parent
5ce987d59f
commit
04e70454de
1 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: irp.c,v 1.65 2004/08/15 16:39:03 chorns Exp $
|
/* $Id: irp.c,v 1.66 2004/08/18 02:24:02 navaraf Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -123,6 +123,8 @@ IoMakeAssociatedIrp(PIRP Irp,
|
||||||
* Irp = Master irp
|
* Irp = Master irp
|
||||||
* StackSize = Number of stack locations to be allocated in the irp
|
* StackSize = Number of stack locations to be allocated in the irp
|
||||||
* RETURNS: The irp allocated
|
* RETURNS: The irp allocated
|
||||||
|
* NOTE: The caller is responsible for incrementing
|
||||||
|
* Irp->AssociatedIrp.IrpCount.
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
PIRP AssocIrp;
|
PIRP AssocIrp;
|
||||||
|
@ -140,7 +142,6 @@ IoMakeAssociatedIrp(PIRP Irp,
|
||||||
|
|
||||||
/* Associate them */
|
/* Associate them */
|
||||||
AssocIrp->AssociatedIrp.MasterIrp = Irp;
|
AssocIrp->AssociatedIrp.MasterIrp = Irp;
|
||||||
InterlockedIncrement(&Irp->AssociatedIrp.IrpCount);
|
|
||||||
|
|
||||||
return AssocIrp;
|
return AssocIrp;
|
||||||
}
|
}
|
||||||
|
@ -364,7 +365,6 @@ IofCompleteRequest(PIRP Irp,
|
||||||
while ((Mdl = Irp->MdlAddress))
|
while ((Mdl = Irp->MdlAddress))
|
||||||
{
|
{
|
||||||
Irp->MdlAddress = Mdl->Next;
|
Irp->MdlAddress = Mdl->Next;
|
||||||
MmUnlockPages(Mdl);
|
|
||||||
IoFreeMdl(Mdl);
|
IoFreeMdl(Mdl);
|
||||||
}
|
}
|
||||||
IoFreeIrp(Irp);
|
IoFreeIrp(Irp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue