[NDIS]
authorCameron Gutman <aicommander@gmail.com>
Mon, 5 Dec 2011 23:38:14 +0000 (23:38 +0000)
committerCameron Gutman <aicommander@gmail.com>
Mon, 5 Dec 2011 23:38:14 +0000 (23:38 +0000)
- Call MiniportReturnPacket at DISPATCH_LEVEL

svn path=/trunk/; revision=54601

reactos/drivers/network/ndis/ndis/miniport.c

index 4c8017d..7a2f61e 100644 (file)
@@ -262,6 +262,7 @@ NdisReturnPackets(
 {
     UINT i;
     PLOGICAL_ADAPTER Adapter;
 {
     UINT i;
     PLOGICAL_ADAPTER Adapter;
+    KIRQL OldIrql;
 
     NDIS_DbgPrint(MID_TRACE, ("Returning %d packets\n", NumberOfPackets));
 
 
     NDIS_DbgPrint(MID_TRACE, ("Returning %d packets\n", NumberOfPackets));
 
@@ -274,9 +275,11 @@ NdisReturnPackets(
 
             NDIS_DbgPrint(MAX_TRACE, ("Freeing packet %d (adapter = 0x%p)\n", i, Adapter));
 
 
             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]);
             Adapter->NdisMiniportBlock.DriverHandle->MiniportCharacteristics.ReturnPacketHandler(
                   Adapter->NdisMiniportBlock.MiniportAdapterContext,
                   PacketsToReturn[i]);
+            KeLowerIrql(OldIrql);
         }
     }
 }\f
         }
     }
 }\f