Author: cgutman
Date: Sat Feb 25 21:18:17 2012
New Revision: 55867

URL: http://svn.reactos.org/svn/reactos?rev=55867&view=rev
Log:
[USBSTOR]
- Fix corruption of SCSI read format capacity by writing the LUN to the wrong 
location

Modified:
    trunk/reactos/drivers/usb/usbstor/scsi.c

Modified: trunk/reactos/drivers/usb/usbstor/scsi.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbstor/scsi.c?rev=55867&r1=55866&r2=55867&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/usbstor/scsi.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbstor/scsi.c [iso-8859-1] Sat Feb 25 21:18:17 
2012
@@ -847,7 +847,7 @@
     //
     RtlZeroMemory(&Cmd, sizeof(UFI_READ_FORMAT_CAPACITY));
     Cmd.Code = SCSIOP_READ_FORMATTED_CAPACITY;
-    Cmd.LUN = (PDODeviceExtension->LUN & MAX_LUN) << 5;
+    Cmd.LUN = (PDODeviceExtension->LUN & MAX_LUN);
     Cmd.AllocationLengthMsb = HTONS(Request->DataTransferLength & 0xFFFF) >> 8;
     Cmd.AllocationLengthLsb = HTONS(Request->DataTransferLength & 0xFFFF) & 
0xFF;
 


Reply via email to