[USBSTOR]

- Set the correct transfer direction value in the CBW
- Fixes the infamous system hang that occurred when writing to a USB drive

svn path=/branches/usb-bringup-trunk/; revision=55223
This commit is contained in:
Cameron Gutman 2012-01-26 20:02:42 +00:00
parent 38758cfacb
commit bc7a50b969

View file

@ -31,7 +31,7 @@ USBSTOR_BuildCBW(
Control->Signature = CBW_SIGNATURE;
Control->Tag = Tag;
Control->DataTransferLength = DataTransferLength;
Control->Flags = 0x80;
Control->Flags = (CommandBlock[0] != SCSIOP_WRITE) ? 0x80 : 0x00;
Control->LUN = (LUN & MAX_LUN);
Control->CommandBlockLength = CommandBlockLength;