Author: pschweitzer Date: Thu Jan 22 10:47:45 2009 New Revision: 39022
URL: http://svn.reactos.org/svn/reactos?rev=39022&view=rev Log: Don't leak IRPs in case of failure
Modified: trunk/reactos/drivers/filesystems/fastfat_new/fsctl.c
Modified: trunk/reactos/drivers/filesystems/fastfat_new/fsctl.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfat... ============================================================================== --- trunk/reactos/drivers/filesystems/fastfat_new/fsctl.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/fastfat_new/fsctl.c [iso-8859-1] Thu Jan 22 10:47:45 2009 @@ -100,8 +100,7 @@
/* 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 @@ IrpSp->Parameters.MountVolume.DeviceObject, IrpSp->Parameters.MountVolume.Vpb, IrpSp->DeviceObject); + + if (!NT_SUCCESS(Status)) + FatCompleteRequest(IrpContext, Irp, Status); + break;
case IRP_MN_VERIFY_VOLUME: