mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 08:00:24 +00:00
Don't leak IRPs in case of failure
svn path=/trunk/; revision=39022
This commit is contained in:
parent
be5c23f647
commit
d5a69508bf
1 changed files with 5 additions and 2 deletions
|
@ -100,8 +100,7 @@ FatMountVolume(PFAT_IRP_CONTEXT IrpContext,
|
|||
|
||||
/* TODO: Initialize VCB for this volume */
|
||||
|
||||
/* Complete the request and return success */
|
||||
FatCompleteRequest(IrpContext, IrpContext->Irp, STATUS_SUCCESS);
|
||||
/* Return success */
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -129,6 +128,10 @@ FatiFileSystemControl(PFAT_IRP_CONTEXT IrpContext, PIRP Irp)
|
|||
IrpSp->Parameters.MountVolume.DeviceObject,
|
||||
IrpSp->Parameters.MountVolume.Vpb,
|
||||
IrpSp->DeviceObject);
|
||||
|
||||
if (!NT_SUCCESS(Status))
|
||||
FatCompleteRequest(IrpContext, Irp, Status);
|
||||
|
||||
break;
|
||||
|
||||
case IRP_MN_VERIFY_VOLUME:
|
||||
|
|
Loading…
Reference in a new issue