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
* PROJECT: ReactOS kernel
@ -109,7 +109,10 @@ VOID IoReadWriteCompletion(PDEVICE_OBJECT DeviceObject,
if (DeviceObject->Flags & DO_DIRECT_IO)
{
IoFreeMdl(Irp->MdlAddress);
if (Irp->MdlAddress)
{
IoFreeMdl(Irp->MdlAddress);
}
}
}