From: Alan Stern Date: Fri, 10 Nov 2006 20:27:57 +0000 (-0800) Subject: [PATCH] SCSI core: always store >= 36 bytes of INQUIRY data X-Git-Tag: v2.6.19-rc6~34 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09123d230a294cd3b860f4ea042235b988277f0a;p=pandora-kernel.git [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 Cc: James Bottomley Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed