fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / drivers / usb / storage / freecom.c
index 1dbb630..88aa59a 100644 (file)
  * (http://www.freecom.de/)
  */
 
-#include <linux/config.h>
 #include <linux/hdreg.h>
 
 #include <scsi/scsi.h>
 #include <scsi/scsi_cmnd.h>
 
+#include "usb.h"
 #include "transport.h"
 #include "protocol.h"
-#include "usb.h"
 #include "debug.h"
 #include "freecom.h"
 
@@ -290,7 +289,7 @@ int freecom_transport(struct scsi_cmnd *srb, struct us_data *us)
                case REQUEST_SENSE:             /* 16 or 18 bytes? spec says 18, lots of devices only have 16 */
                case MODE_SENSE:
                case MODE_SENSE_10:
-                       length = fst->Count;
+                       length = le16_to_cpu(fst->Count);
                        break;
                default:
                        length = srb->request_bufflen;