]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] SCSI core: always store >= 36 bytes of INQUIRY data
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 10 Nov 2006 20:27:57 +0000 (12:27 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 13 Nov 2006 15:40:43 +0000 (07:40 -0800)
commit500e22a5aad24d2b3e915f473a5d1d74abd27a97
treee5231cafdbecb9fbf4bc0d1b462f43c64136980b
parentd288dcfd71e4fabd688f8f874db0815e1a9b9c5e
[PATCH] SCSI core: always store >= 36 bytes of INQUIRY data

This patch (as810c) copies a minimum of 36 bytes of INQUIRY data, even if
the device claims that not all of them are valid.  Often badly behaved
devices put plausible data in the Vendor, Product, and Revision strings but
set the Additional Length byte to a small value.  Using potentially valid
data is certainly better than allocating a short buffer and then reading
beyond the end of it, which is what we do now.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/scsi/scsi_scan.c