mirror of
https://github.com/reactos/reactos.git
synced 2025-05-18 16:51:18 +00:00
- Add missing locking to DeallocatePort
svn path=/trunk/; revision=42399
This commit is contained in:
parent
914b6fa743
commit
083150d2cd
1 changed files with 3 additions and 0 deletions
|
@ -35,7 +35,10 @@ VOID DeallocatePort( PPORT_SET PortSet, ULONG Port ) {
|
|||
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 ) {
|
||||
|
|
Loading…
Reference in a new issue