From 4e9dc21691c1a872ffd021a85e82ba25b90487a2 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Sat, 17 Aug 2002 15:21:12 +0000 Subject: [PATCH] Removed freeing of IRP's MDL in ScsiClassIoComplete. svn path=/trunk/; revision=3343 --- reactos/drivers/storage/class2/class2.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/reactos/drivers/storage/class2/class2.c b/reactos/drivers/storage/class2/class2.c index ad38cadeee0..84fe6940692 100644 --- a/reactos/drivers/storage/class2/class2.c +++ b/reactos/drivers/storage/class2/class2.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: class2.c,v 1.21 2002/06/06 23:19:36 ekohl Exp $ +/* $Id: class2.c,v 1.22 2002/08/17 15:21:12 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -929,15 +929,6 @@ ScsiClassIoComplete(PDEVICE_OBJECT DeviceObject, } } - /* Free the IRP's MDL */ - if (Irp->MdlAddress->MappedSystemVa != NULL) - { - MmUnmapLockedPages(Irp->MdlAddress->MappedSystemVa, - Irp->MdlAddress); - } - MmUnlockPages(Irp->MdlAddress); - ExFreePool(Irp->MdlAddress); - /* FIXME: use lookaside list instead */ DPRINT("Freed SRB %p\n", IrpStack->Parameters.Scsi.Srb); ExFreePool(IrpStack->Parameters.Scsi.Srb);