[SCSI] st: fix test of value range in st_set_options()
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 17 Nov 2009 22:53:22 +0000 (14:53 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:01:49 +0000 (12:01 -0600)
commit832151f45806613f203c4c0308c1566d882b971f
tree4ac1a4fd574094b225e00791eaf23ceb12db28b0
parent1acf3b06f77a48b1607534408866473fb8018a65
[SCSI] st: fix test of value range in st_set_options()

value cannot logically be less than START and greater than BUFFERSIZE.

#define EXTENDED_SENSE_START  18

// vi include/scsi/scsi_cmnd.h +105
#define SCSI_SENSE_BUFFERSIZE  96

[akpm@linux-foundation.org: fix warning]
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Kai Makisara <kai.makisara@kolumbus.fi>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/st.c