Author: zhu
Date: Wed Aug 17 19:25:18 2016
New Revision: 72245
URL:
http://svn.reactos.org/svn/reactos?rev=72245&view=rev
Log:
Put MTSerialMutex around a call into lwIP that I previously missed.
Modified:
branches/GSoC_2016/lwIP-tcpip/drivers/network/tcpip/ndis_lwip.c
Modified: branches/GSoC_2016/lwIP-tcpip/drivers/network/tcpip/ndis_lwip.c
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2016/lwIP-tcpip/drivers/ne…
==============================================================================
--- branches/GSoC_2016/lwIP-tcpip/drivers/network/tcpip/ndis_lwip.c [iso-8859-1]
(original)
+++ branches/GSoC_2016/lwIP-tcpip/drivers/network/tcpip/ndis_lwip.c [iso-8859-1] Wed Aug
17 19:25:18 2016
@@ -363,6 +363,7 @@
ip_addr_set_zero(&IpAddr);
ip_addr_set_zero(&SubnetMask);
ip_addr_set_zero(&GatewayAddr);
+ ACQUIRE_SERIAL_MUTEX_NO_TO();
lwip_error = netifapi_netif_add(
&Interface->lwip_netif,
&IpAddr,
@@ -371,6 +372,7 @@
Interface,
lwip_netif_init,
ethernet_input);
+ RELEASE_SERIAL_MUTEX();
if (lwip_error != ERR_OK)
{
DPRINT1("netifapi_netif_add failed with error %d.\n", lwip_error);