[SCSI] hptiop: avoid buffer overflow when returning sense data
authorHighPoint Linux Team <linux@highpoint-tech.com>
Mon, 15 Oct 2007 06:42:52 +0000 (14:42 +0800)
committerJames Bottomley <jejb@mulgrave.localdomain>
Thu, 18 Oct 2007 01:56:13 +0000 (21:56 -0400)
The newer firmware may return more than 96 bytes of sense data when it
does autosense.  Truncate this to the size of the SCSI layer sense
buffer to avoid an overrun.

Signed-off-by: HighPoint Linux Team <linux@highpoint-tech.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

No differences found