mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 21:46:05 +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 */
|
/* TODO: Initialize VCB for this volume */
|
||||||
|
|
||||||
/* Complete the request and return success */
|
/* Return success */
|
||||||
FatCompleteRequest(IrpContext, IrpContext->Irp, STATUS_SUCCESS);
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,6 +128,10 @@ FatiFileSystemControl(PFAT_IRP_CONTEXT IrpContext, PIRP Irp)
|
||||||
IrpSp->Parameters.MountVolume.DeviceObject,
|
IrpSp->Parameters.MountVolume.DeviceObject,
|
||||||
IrpSp->Parameters.MountVolume.Vpb,
|
IrpSp->Parameters.MountVolume.Vpb,
|
||||||
IrpSp->DeviceObject);
|
IrpSp->DeviceObject);
|
||||||
|
|
||||||
|
if (!NT_SUCCESS(Status))
|
||||||
|
FatCompleteRequest(IrpContext, Irp, Status);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IRP_MN_VERIFY_VOLUME:
|
case IRP_MN_VERIFY_VOLUME:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue