Stop rewarding user thread on IRP buffer error

When driver cannot access IRP's MDL it shouldn't grand calling user
thread any priority boost. The IO_NETWORK_INCREMENT was overlooked on
copy&paste.

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2019-04-05 20:14:58 +02:00
parent 1369525e3a
commit 5b529a9c50

View File

@ -330,7 +330,7 @@ retry:
NTSTATUS status = TunGetIrpBuffer(irp, buffer, size);
if (!NT_SUCCESS(status)) {
irp->IoStatus.Status = status;
IoCompleteRequest(irp, IO_NETWORK_INCREMENT);
IoCompleteRequest(irp, IO_NO_INCREMENT);
goto retry;
}