Author: cgutman
Date: Mon Sep 8 19:58:44 2008
New Revision: 36075
URL:
http://svn.reactos.org/svn/reactos?rev=36075&view=rev
Log:
- Release the spin lock before returning
Modified:
branches/aicom-network-fixes/drivers/network/lan/lan/lan.c
Modified: branches/aicom-network-fixes/drivers/network/lan/lan/lan.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/lan/lan/lan.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/drivers/network/lan/lan/lan.c [iso-8859-1] Mon Sep 8
19:58:44 2008
@@ -349,7 +349,10 @@
/* Get a transfer data packet */
KeAcquireSpinLockAtDpcLevel(&Adapter->Lock);
NdisStatus = AllocatePacketWithBuffer( &NdisPacket, NULL, Adapter->MTU );
- if( NdisStatus != NDIS_STATUS_SUCCESS ) return NDIS_STATUS_NOT_ACCEPTED;
+ if( NdisStatus != NDIS_STATUS_SUCCESS ) {
+ KeReleaseSpinLockFromDpcLevel(&Adapter->Lock);
+ return NDIS_STATUS_NOT_ACCEPTED;
+ }
LA_DbgPrint(DEBUG_DATALINK, ("pretransfer LookaheadBufferSize %d packsize
%d\n",LookaheadBufferSize,PacketSize));
{
UINT temp;