]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
hptiop: avoid buffer overflow when returning sense data
authorHighPoint Linux Team <linux@highpoint-tech.com>
Tue, 16 Oct 2007 21:28:24 +0000 (14:28 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Nov 2007 17:25:55 +0000 (09:25 -0800)
commitdd2ee9fbafad8ec8b5f5c0b325d149c168b42155
tree75f3dd1390d314b87b6111f072170c0cf31a9d0c
parent5120a468e1b3a7d01bb043884ed377ff1c0cc653
hptiop: avoid buffer overflow when returning sense data

patch 0fec02c93f60fb44ba3a24a0d3e4a52521d34d3f in mainline.

avoid buffer overflow when returning sense data.

With current adapter firmware the driver is working but future firmware
updates may return sense data larger than 96 bytes, causing overflow on
scp->sense_buffer and a kernel crash.

This fix should be backported to earlier kernels.

Signed-off-by: HighPoint Linux Team <linux@highpoint-tech.com>
Signed-off-by: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/hptiop.c