From: James Bottomley Date: Tue, 11 Aug 2009 15:59:09 +0000 (-0500) Subject: [SCSI] fix bugs in scsi_vpd_inquiry() X-Git-Tag: v2.6.32-rc1~689^2~139 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95a3639e275fb7aec5c9a2116c88a2cdd23e0b8b;p=pandora-kernel.git [SCSI] fix bugs in scsi_vpd_inquiry() Universally, SCSI functions assume the lengths fed in are those of the buffer to DMA data to, not the lengths of the data minus the header. scsi_vpd_inquiry() assumed the latter and got it wrong, so fix up all the functions to use the correct assumption (and fix a bug where INQUIRY in SCSI-2 dcannot go over 255). [jejb: Matthew posted an identical version of this at the same time I did] Signed-off-by: Matthew Wilcox Signed-off-by: James Bottomley --- Reading git-diff-tree failed