Author: cgutman
Date: Wed Aug 5 01:35:50 2009
New Revision: 42399
URL:
http://svn.reactos.org/svn/reactos?rev=42399&view=rev
Log:
- Add missing locking to DeallocatePort
Modified:
trunk/reactos/lib/drivers/ip/network/ports.c
Modified: trunk/reactos/lib/drivers/ip/network/ports.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/ip/network/por…
==============================================================================
--- trunk/reactos/lib/drivers/ip/network/ports.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/ip/network/ports.c [iso-8859-1] Wed Aug 5 01:35:50 2009
@@ -35,7 +35,10 @@
Port = htons(Port);
ASSERT(Port >= PortSet->StartingPort);
ASSERT(Port < PortSet->StartingPort + PortSet->PortsToOversee);
+
+ ExAcquireFastMutex( &PortSet->Mutex );
RtlClearBits( &PortSet->ProtoBitmap, Port - PortSet->StartingPort, 1 );
+ ExReleaseFastMutex( &PortSet->Mutex );
}
BOOLEAN AllocatePort( PPORT_SET PortSet, ULONG Port ) {