mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- Don't hold the spin lock when calling the request completion handler
svn path=/trunk/; revision=42355
This commit is contained in:
parent
e975dfead9
commit
b85fb3bd9f
1 changed files with 4 additions and 0 deletions
|
@ -136,11 +136,15 @@ VOID DGDeliverData(
|
|||
&SrcAddress->Address.IPv4Address,
|
||||
sizeof(SrcAddress->Address.IPv4Address) );
|
||||
|
||||
TcpipReleaseSpinLock(&AddrFile->Lock, OldIrql);
|
||||
|
||||
/* Complete the receive request */
|
||||
if (Current->BufferSize < DataSize)
|
||||
Current->Complete(Current->Context, STATUS_BUFFER_OVERFLOW, Current->BufferSize);
|
||||
else
|
||||
Current->Complete(Current->Context, STATUS_SUCCESS, DataSize);
|
||||
|
||||
TcpipAcquireSpinLock(&AddrFile->Lock, &OldIrql);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue