mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
- Merge aicom-network-fixes up to r36581
svn path=/trunk/; revision=36582
This commit is contained in:
parent
ec00886a23
commit
472eb91e2f
2 changed files with 5 additions and 4 deletions
|
@ -182,8 +182,6 @@ MiniIndicateData(
|
|||
AdapterBinding = CONTAINING_RECORD(CurrentEntry, ADAPTER_BINDING, AdapterListEntry);
|
||||
NDIS_DbgPrint(DEBUG_MINIPORT, ("AdapterBinding = %x\n", AdapterBinding));
|
||||
|
||||
KeReleaseSpinLock(&Adapter->NdisMiniportBlock.Lock, OldIrql);
|
||||
|
||||
#ifdef DBG
|
||||
if(!AdapterBinding)
|
||||
{
|
||||
|
@ -226,8 +224,6 @@ MiniIndicateData(
|
|||
LookaheadBufferSize,
|
||||
PacketSize);
|
||||
|
||||
KeAcquireSpinLock(&Adapter->NdisMiniportBlock.Lock, &OldIrql);
|
||||
|
||||
CurrentEntry = CurrentEntry->Flink;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,6 +67,7 @@ ProIndicatePacket(
|
|||
{
|
||||
UINT BufferedLength;
|
||||
UINT PacketLength;
|
||||
KIRQL OldIrql;
|
||||
|
||||
NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
|
||||
|
||||
|
@ -76,6 +77,8 @@ ProIndicatePacket(
|
|||
|
||||
NdisQueryPacket(Packet, NULL, NULL, NULL, &PacketLength);
|
||||
|
||||
KeRaiseIrql(DISPATCH_LEVEL, &OldIrql);
|
||||
|
||||
NDIS_DbgPrint(MAX_TRACE, ("acquiring miniport block lock\n"));
|
||||
KeAcquireSpinLockAtDpcLevel(&Adapter->NdisMiniportBlock.Lock);
|
||||
{
|
||||
|
@ -103,6 +106,8 @@ ProIndicatePacket(
|
|||
}
|
||||
KeReleaseSpinLockFromDpcLevel(&Adapter->NdisMiniportBlock.Lock);
|
||||
|
||||
KeLowerIrql(OldIrql);
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue