On Wed, 18 Oct 2006, Andrew Morton wrote:

> Begin forwarded message:
> 
> Date: Sun, 15 Oct 2006 12:20:02 +0300 (EEST)
> From: Meelis Roos <[EMAIL PROTECTED]>
> To: Linux Kernel list <linux-kernel@vger.kernel.org>
> Subject: garbled usb storage scsi vendor & model in 2.6.19-rc1
> 
> 
> This 2.6.19-rc1-g53a5fbdc kernel, compiled for x86_64. Plugging in a USB 
> storage device gave this in dmesg:
> 
> usb 2-2: new full speed USB device using ohci_hcd and address 4
> usb 2-2: configuration #1 chosen from 1 choice
> scsi2 : SCSI emulation for USB Mass Storage devices
> usb-storage: device found at 4
> usb-storage: waiting for device to settle before scanning
> scsi 2:0:0:0: Direct-Access     ugin.upd .dpkg-new  PQ: 0 ANSI: 0 CCS

> Notice the line
> scsi 2:0:0:0: Direct-Access     ugin.upd .dpkg-new  PQ: 0 ANSI: 0 CCS
> 
> The data is garbage here (obviously I'm running debian and have done 
> daily upgrade recently). Other than that message, the device appeared 
> running fine. But it still worries.

Try using the patch below.  If you still see the same garbage showing up, 
it must be because the drive is sending this garbage to your computer.

Alan Stern



Index: usb-2.6/drivers/scsi/scsi_scan.c
===================================================================
--- usb-2.6.orig/drivers/scsi/scsi_scan.c
+++ usb-2.6/drivers/scsi/scsi_scan.c
@@ -478,7 +478,7 @@ static int scsi_probe_lun(struct scsi_de
                scsi_cmd[0] = INQUIRY;
                scsi_cmd[4] = (unsigned char) try_inquiry_len;
 
-               memset(inq_result, 0, try_inquiry_len);
+               memset(inq_result, 0, max(36, try_inquiry_len));
 
                result = scsi_execute_req(sdev,  scsi_cmd, DMA_FROM_DEVICE,
                                          inq_result, try_inquiry_len, &sshdr,


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to