On Wed, 18 Oct 2006, Andrew Morton wrote: > Begin forwarded message: > > Date: Sun, 15 Oct 2006 12:20:02 +0300 (EEST) > From: Meelis Roos <mroos@xxxxxxxx> > To: Linux Kernel list <linux-kernel@xxxxxxxxxxxxxxx> > 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, - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html