Fix the cleanup order in TunDispatchWrite()
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
dc7a6fca11
commit
54ee02ae34
2
wintun.c
2
wintun.c
@ -765,8 +765,8 @@ cleanup_nbl_queues:
|
|||||||
}
|
}
|
||||||
cleanup_ExReleaseSpinLockShared:
|
cleanup_ExReleaseSpinLockShared:
|
||||||
ExReleaseSpinLockShared(&ctx->TransitionLock, irql);
|
ExReleaseSpinLockShared(&ctx->TransitionLock, irql);
|
||||||
TunCompletePause(ctx, TRUE);
|
|
||||||
TunCompleteRequest(ctx, Irp, status, IO_NO_INCREMENT);
|
TunCompleteRequest(ctx, Irp, status, IO_NO_INCREMENT);
|
||||||
|
TunCompletePause(ctx, TRUE);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user