mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 20:43:18 +00:00
Fixed missing unlock in write.
svn path=/trunk/; revision=10649
This commit is contained in:
parent
2496ef39ee
commit
36d2e136c7
2 changed files with 7 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: read.c,v 1.2 2004/07/18 22:49:17 arty Exp $
|
||||
/* $Id: read.c,v 1.3 2004/08/22 02:15:57 arty Exp $
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: drivers/net/afd/afd/read.c
|
||||
|
@ -111,7 +111,8 @@ NTSTATUS DDKAPI ReceiveComplete
|
|||
&NextIrp->Tail.Overlay.ListEntry);
|
||||
break;
|
||||
} else {
|
||||
AFD_DbgPrint(MID_TRACE,("Completing recv %x\n", NextIrp));
|
||||
AFD_DbgPrint(MID_TRACE,("Completing recv %x (%d)\n", NextIrp,
|
||||
TotalBytesCopied));
|
||||
UnlockBuffers( RecvReq->BufferArray, RecvReq->BufferCount );
|
||||
NextIrp->IoStatus.Status = Status;
|
||||
NextIrp->IoStatus.Information = TotalBytesCopied;
|
||||
|
@ -151,7 +152,6 @@ NTSTATUS DDKAPI ReceiveComplete
|
|||
PollReeval( FCB->DeviceExt, FCB->FileObject );
|
||||
} else
|
||||
FCB->PollState &= ~AFD_EVENT_RECEIVE;
|
||||
|
||||
|
||||
SocketStateUnlock( FCB );
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: write.c,v 1.2 2004/07/18 22:49:17 arty Exp $
|
||||
/* $Id: write.c,v 1.3 2004/08/22 02:15:57 arty Exp $
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: drivers/net/afd/afd/write.c
|
||||
|
@ -53,6 +53,7 @@ NTSTATUS DDKAPI SendComplete
|
|||
}
|
||||
|
||||
SocketStateUnlock( FCB );
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -118,6 +119,8 @@ NTSTATUS DDKAPI SendComplete
|
|||
if( Status == STATUS_PENDING )
|
||||
Status = STATUS_SUCCESS;
|
||||
|
||||
SocketStateUnlock( FCB );
|
||||
|
||||
AFD_DbgPrint(MID_TRACE,("Dismissing request: %x\n", Status));
|
||||
|
||||
return UnlockAndMaybeComplete( FCB, Status, Irp, TotalBytesCopied,
|
||||
|
|
Loading…
Reference in a new issue