Author: cgutman
Date: Thu Sep 18 23:18:59 2008
New Revision: 36310
URL:
http://svn.reactos.org/svn/reactos?rev=36310&view=rev
Log:
- Add the adapter to the adapter list only after it is bound to the IP layer
Modified:
branches/aicom-network-fixes/drivers/network/tcpip/datalink/lan.c
Modified: branches/aicom-network-fixes/drivers/network/tcpip/datalink/lan.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/tcpip/datalink/lan.c [iso-8859-1]
(original)
+++ branches/aicom-network-fixes/drivers/network/tcpip/datalink/lan.c [iso-8859-1] Thu Sep
18 23:18:59 2008
@@ -1207,17 +1207,17 @@
/* Convert returned link speed to bps (it is in 100bps increments) */
IF->Speed = Speed * 100L;
- /* Add adapter to the adapter list */
- ExInterlockedInsertTailList(&AdapterListHead,
- &IF->ListEntry,
- &AdapterListLock);
-
/* Bind adapter to IP layer */
if( !BindAdapter(IF, RegistryPath) ) {
TI_DbgPrint(DEBUG_DATALINK,("denying adapter %wZ (BindAdapter)\n",
AdapterName));
exFreePool(IF);
return NDIS_STATUS_NOT_ACCEPTED;
}
+
+ /* Add adapter to the adapter list */
+ ExInterlockedInsertTailList(&AdapterListHead,
+ &IF->ListEntry,
+ &AdapterListLock);
TI_DbgPrint(DEBUG_DATALINK, ("Leaving.\n"));