From 54ee02ae34b50eac0b9615439c0294df452d0e64 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 13 Jun 2019 21:33:36 +0200 Subject: [PATCH] Fix the cleanup order in TunDispatchWrite() Signed-off-by: Simon Rozman --- wintun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wintun.c b/wintun.c index 5343c0b..2be239d 100644 --- a/wintun.c +++ b/wintun.c @@ -765,8 +765,8 @@ cleanup_nbl_queues: } cleanup_ExReleaseSpinLockShared: ExReleaseSpinLockShared(&ctx->TransitionLock, irql); - TunCompletePause(ctx, TRUE); TunCompleteRequest(ctx, Irp, status, IO_NO_INCREMENT); + TunCompletePause(ctx, TRUE); return status; }