mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 04:42:00 +00:00
Check for an valid mdl pointer before calling IoFreeMdl in IoReadWriteCompletion.
svn path=/trunk/; revision=14493
This commit is contained in:
parent
1844746db4
commit
f4a430511e
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue