Check for an valid mdl pointer before calling IoFreeMdl in IoReadWriteCompletion.

svn path=/trunk/; revision=14493
This commit is contained in:
Hartmut Birr 2005-04-04 23:11:19 +00:00
parent 1844746db4
commit f4a430511e

View file

@ -1,4 +1,4 @@
/* $Id:$ /* $Id$
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -108,10 +108,13 @@ VOID IoReadWriteCompletion(PDEVICE_OBJECT DeviceObject,
} }
if (DeviceObject->Flags & DO_DIRECT_IO) if (DeviceObject->Flags & DO_DIRECT_IO)
{
if (Irp->MdlAddress)
{ {
IoFreeMdl(Irp->MdlAddress); IoFreeMdl(Irp->MdlAddress);
} }
} }
}
VOID IoVolumeInformationCompletion(PDEVICE_OBJECT DeviceObject, VOID IoVolumeInformationCompletion(PDEVICE_OBJECT DeviceObject,
PIRP Irp, PIRP Irp,