- Make sure CLASS2 driver returns STATUS_UNSUCCESSFUL if receiving a RESET_DEVICE ioctl.

svn path=/trunk/; revision=28983
This commit is contained in:
Aleksey Bragin 2007-09-09 17:06:14 +00:00
parent 109fe2a8fd
commit 19dc9c4a64

View file

@ -3551,6 +3551,14 @@ Return Value:
NTSTATUS status;
ULONG modifiedIoControlCode;
// Class can't handle RESET_DEVICE ioctl
if (irpStack->Parameters.DeviceIoControl.IoControlCode == IOCTL_STORAGE_RESET_DEVICE)
{
status = Irp->IoStatus.Status = STATUS_UNSUCCESSFUL;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
goto SetStatusAndReturn;
}
//
// If this is a pass through I/O control, set the minor function code
// and device address and pass it to the port driver.