[SCSI] scsi_transport_spi: fix sense buffer size error
authorJames Bottomley <James.Bottomley@steeleye.com>
Mon, 11 Dec 2006 15:47:06 +0000 (09:47 -0600)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Wed, 3 Jan 2007 22:57:35 +0000 (16:57 -0600)
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 <James.Bottomley@SteelEye.com>

No differences found