From: James Bottomley Date: Mon, 11 Dec 2006 15:47:06 +0000 (-0600) Subject: [SCSI] scsi_transport_spi: fix sense buffer size error X-Git-Tag: v2.6.20-rc6~54^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ed381ee559ebfab32d3b21896c204992c36179a;p=pandora-kernel.git [SCSI] scsi_transport_spi: fix sense buffer size error The code does this: unsigned char sense[SCSI_SENSE_BUFFERSIZE]; ... scsi_normalize_sense(sense, sizeof(*sense), sshdr) however the sizeof will return 1 not 96 which means the sense data will have no valid ASC/ASCQ values. Fix by putting the correct sense size. The only affected case for this would have been the DV buffer sanity check failure, which is fortunately quite rare. Signed-off-by: James Bottomley --- Reading git-diff-tree failed