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:
parent
1369525e3a
commit
5b529a9c50
2
wintun.c
2
wintun.c
@ -330,7 +330,7 @@ retry:
|
|||||||
NTSTATUS status = TunGetIrpBuffer(irp, buffer, size);
|
NTSTATUS status = TunGetIrpBuffer(irp, buffer, size);
|
||||||
if (!NT_SUCCESS(status)) {
|
if (!NT_SUCCESS(status)) {
|
||||||
irp->IoStatus.Status = status;
|
irp->IoStatus.Status = status;
|
||||||
IoCompleteRequest(irp, IO_NETWORK_INCREMENT);
|
IoCompleteRequest(irp, IO_NO_INCREMENT);
|
||||||
goto retry;
|
goto retry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user