mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 19:26:42 +00:00
- Make sure CLASS2 driver returns STATUS_UNSUCCESSFUL if receiving a RESET_DEVICE ioctl.
svn path=/trunk/; revision=28983
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user