- Move SocketAcquireStateLock out of SEH
authorCameron Gutman <aicommander@gmail.com>
Sat, 16 Aug 2008 15:06:12 +0000 (15:06 +0000)
committerCameron Gutman <aicommander@gmail.com>
Sat, 16 Aug 2008 15:06:12 +0000 (15:06 +0000)
svn path=/branches/aicom-network-fixes/; revision=35393

drivers/network/afd/afd/info.c

index edd9029..5e233ef 100644 (file)
@@ -24,12 +24,9 @@ AfdGetInfo( PDEVICE_OBJECT DeviceObject, PIRP Irp,
     AFD_DbgPrint(MID_TRACE,("Called %x %x\n", InfoReq,
                            InfoReq ? InfoReq->InformationClass : 0));
 
-    _SEH_TRY {
-       if( !SocketAcquireStateLock( FCB ) ) {
-           Status = LostSocket( Irp );
-           _SEH_YIELD(return Status);
-       }
+    if( !SocketAcquireStateLock( FCB ) ) return LostSocket( Irp );
 
+    _SEH_TRY {
        switch( InfoReq->InformationClass ) {
        case AFD_INFO_RECEIVE_WINDOW_SIZE:
            InfoReq->Information.Ulong = FCB->Recv.Size;