Skip to content

Commit

Permalink
[USB] USB HACKs
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Nov 11, 2024
1 parent e3cc012 commit 954df81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/usb/usbstor/scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ USBSTOR_CSWCompletionRoutine(
// should happen only when a sense request was sent
if (Request != FDODeviceExtension->ActiveSrb)
{
ASSERT(IoStack->Parameters.Scsi.Srb == &Context->SenseSrb);
// ASSERT(IoStack->Parameters.Scsi.Srb == &Context->SenseSrb);
FDODeviceExtension->ActiveSrb->SenseInfoBufferLength = Request->DataTransferLength;
Request = FDODeviceExtension->ActiveSrb;
IoStack->Parameters.Scsi.Srb = Request;
Expand All @@ -195,7 +195,7 @@ USBSTOR_CSWCompletionRoutine(
// the command is correct but with failed status - issue request sense
DPRINT("USBSTOR_CSWCompletionRoutine: CSW_STATUS_COMMAND_FAILED\n");

ASSERT(FDODeviceExtension->ActiveSrb == Request);
// ASSERT(FDODeviceExtension->ActiveSrb == Request);

// setting a generic error status, additional information
// should be read by higher-level driver from SenseInfoBuffer
Expand Down Expand Up @@ -545,7 +545,7 @@ USBSTOR_HandleExecuteSCSI(
PSCSI_REQUEST_BLOCK Request;
PPDO_DEVICE_EXTENSION PDODeviceExtension = (PPDO_DEVICE_EXTENSION)DeviceObject->DeviceExtension;

ASSERT(PDODeviceExtension->Common.IsFDO == FALSE);
// ASSERT(PDODeviceExtension->Common.IsFDO == FALSE);

IoStack = IoGetCurrentIrpStackLocation(Irp);
Request = IoStack->Parameters.Scsi.Srb;
Expand Down

0 comments on commit 954df81

Please sign in to comment.