C28143

warning C28143: A dispatch routine that calls IoMarkIrpPending must also return STATUS_PENDING

A dispatch routine that calls IoMarkIrpPending includes at least one path in which the driver returns a value other than STATUS_PENDING.

Example

The following code example elicits this warning.

IoMarkIrpPending(Irp);
...
return STATUS_SUCCESS;

The following code example avoids this warning.

IoMarkIrpPending(Irp);
...
return STATUS_PENDING;