Author: cgutman
Date: Tue Aug 19 12:45:53 2008
New Revision: 35457
URL:
http://svn.reactos.org/svn/reactos?rev=35457&view=rev
Log:
- Make sure we have an mdl and a buffer
Modified:
branches/aicom-network-fixes/drivers/network/afd/afd/lock.c
Modified: branches/aicom-network-fixes/drivers/network/afd/afd/lock.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/afd/afd/lock.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/drivers/network/afd/afd/lock.c [iso-8859-1] Tue Aug 19
12:45:53 2008
@@ -50,6 +50,8 @@
}
VOID UnlockRequest( PIRP Irp, PIO_STACK_LOCATION IrpSp ) {
+ if( !IrpSp->Parameters.DeviceIoControl.Type3InputBuffer || !Irp->MdlAddress )
return;
+
MmUnmapLockedPages( IrpSp->Parameters.DeviceIoControl.Type3InputBuffer,
Irp->MdlAddress );
MmUnlockPages( Irp->MdlAddress );