This patch fixes a bug in the ND proxy where an IOCTL handler would return STATUS_PEN...
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 9 Jul 2008 12:22:38 +0000 (12:22 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 9 Jul 2008 12:22:38 +0000 (12:22 +0000)
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1359 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/kernel/al_ndi_cm.c

index 03c2772..36442b9 100644 (file)
@@ -1341,11 +1341,11 @@ ndi_rtu_cm(
        p_irp->Tail.Overlay.DriverContext[1] = IoAllocateWorkItem( p_io_stack->DeviceObject );\r
        ref_al_obj( &h_qp->obj ); /* Take IRP reference. */\r
 \r
+       IoMarkIrpPending( p_irp );\r
        if ( p_irp->Tail.Overlay.DriverContext[1] )\r
        { /* asyncronous performing */\r
                /* take a ref to prevent QP destroy before calling work item */\r
                ref_al_obj( &h_qp->obj ); /* Take work item reference. */\r
-               IoMarkIrpPending( p_irp );\r
                IoQueueWorkItem( p_irp->Tail.Overlay.DriverContext[1],\r
                        __ndi_do_rtu, DelayedWorkQueue, p_irp );\r
        }\r