Author: cgutman
Date: Mon Dec 5 23:38:14 2011
New Revision: 54601
URL:
http://svn.reactos.org/svn/reactos?rev=54601&view=rev
Log:
[NDIS]
- Call MiniportReturnPacket at DISPATCH_LEVEL
Modified:
trunk/reactos/drivers/network/ndis/ndis/miniport.c
Modified: trunk/reactos/drivers/network/ndis/ndis/miniport.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] Mon Dec 5 23:38:14
2011
@@ -262,6 +262,7 @@
{
UINT i;
PLOGICAL_ADAPTER Adapter;
+ KIRQL OldIrql;
NDIS_DbgPrint(MID_TRACE, ("Returning %d packets\n", NumberOfPackets));
@@ -274,9 +275,11 @@
NDIS_DbgPrint(MAX_TRACE, ("Freeing packet %d (adapter = 0x%p)\n",
i, Adapter));
+ KeRaiseIrql(DISPATCH_LEVEL, &OldIrql);
Adapter->NdisMiniportBlock.DriverHandle->MiniportCharacteristics.ReturnPacketHandler(
Adapter->NdisMiniportBlock.MiniportAdapterContext,
PacketsToReturn[i]);
+ KeLowerIrql(OldIrql);
}
}
}