Dan Carpenter bd46fc406b scsi: sg: off by one in sg_ioctl()
If "val" is SG_MAX_QUEUE then we are one element beyond the end of the
"rinfo" array so the > should be >=.

Fixes: 109bade9c625 ("scsi: sg: use standard lists for sg_requests")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-08-22 22:23:42 -04:00
..
2017-07-06 12:10:33 -07:00
2017-07-06 12:10:33 -07:00
2017-07-26 22:00:39 -04:00
2015-04-17 10:13:56 -07:00
2015-11-25 22:08:55 -05:00
2014-07-17 22:07:37 +02:00
2016-05-10 22:01:07 -04:00
2015-11-09 17:11:57 -08:00
2014-11-24 16:13:16 +01:00
2015-11-09 16:32:14 -08:00
2017-06-12 20:48:01 -04:00
2016-02-25 21:10:53 -05:00
2017-08-08 11:49:51 -04:00
2016-01-27 20:36:10 +08:00
2017-08-16 20:01:32 -04:00
2016-01-27 20:36:10 +08:00
2017-05-04 12:19:44 -07:00
2017-04-26 15:09:04 -06:00
2014-07-17 22:07:35 +02:00
2016-02-23 21:27:02 -05:00
2016-11-28 15:51:31 -05:00
2017-07-03 09:55:26 -07:00
2017-07-06 12:10:33 -07:00
2017-07-06 12:10:33 -07:00
2017-04-13 13:58:20 -04:00
2017-07-06 12:10:33 -07:00
2017-08-16 20:01:32 -04:00
2017-05-16 08:44:15 -03:00
2017-08-08 11:49:52 -04:00
2017-08-22 22:23:42 -04:00
2016-02-23 21:27:02 -05:00
2014-07-17 22:07:39 +02:00
2017-04-07 17:07:14 -04:00
2014-11-12 11:15:57 +01:00
2017-08-08 11:49:51 -04:00
2015-11-18 11:59:09 -05:00
2017-04-26 18:32:29 -04:00
2017-02-21 11:51:42 -08:00
2017-03-15 19:27:46 -04:00