Do not clean up mdl on paging requests, as the mm needs it still

svn path=/trunk/; revision=1235
This commit is contained in:
Phillip Susi 2000-07-07 00:41:36 +00:00
parent 7bf98ea309
commit 10c1321106

View file

@ -15,6 +15,7 @@
#include <string.h> #include <string.h>
#include <internal/string.h> #include <internal/string.h>
#include <internal/ob.h> #include <internal/ob.h>
#include <internal/mm.h>
#include <internal/ps.h> #include <internal/ps.h>
#define NDEBUG #define NDEBUG
@ -114,7 +115,7 @@ VOID IoReadWriteCompletion(PDEVICE_OBJECT DeviceObject,
} }
ExFreePool(Irp->AssociatedIrp.SystemBuffer); ExFreePool(Irp->AssociatedIrp.SystemBuffer);
} }
if (DeviceObject->Flags & DO_DIRECT_IO) if (DeviceObject->Flags & DO_DIRECT_IO && !(Irp->Flags & IRP_PAGING_IO))
{ {
DPRINT("Tearing down MDL\n"); DPRINT("Tearing down MDL\n");
if (Irp->MdlAddress->MappedSystemVa!=NULL) if (Irp->MdlAddress->MappedSystemVa!=NULL)