Author: cgutman
Date: Sun May 18 08:43:31 2014
New Revision: 63348
URL:
http://svn.reactos.org/svn/reactos?rev=63348&view=rev
Log:
[NDIS]
- Restore the pending NDIS request before calling the completion routine
- Fixes crash with Broadcom 57xx drivers (link detection still not working)
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] Sun May 18 08:43:31
2014
@@ -1317,10 +1317,11 @@
if (NdisStatus == NDIS_STATUS_PENDING)
break;
+ Adapter->NdisMiniportBlock.PendingRequest =
(PNDIS_REQUEST)WorkItemContext;
switch (((PNDIS_REQUEST)WorkItemContext)->RequestType)
{
case NdisRequestQueryInformation:
- NdisMQueryInformationComplete((NDIS_HANDLE)Adapter, NdisStatus);
+ NdisMQueryInformationComplete((NDIS_HANDLE)Adapter, NdisStatus);
break;
case NdisRequestSetInformation:
@@ -1331,6 +1332,7 @@
NDIS_DbgPrint(MIN_TRACE, ("Unknown NDIS request type.\n"));
break;
}
+ Adapter->NdisMiniportBlock.PendingRequest = NULL;
break;
default: