Files
twx-linux/drivers/scsi
Ben Hutchings 5a0dbfeed4 scsi: sg: Re-fix off by one in sg_fill_request_table()
commit 587c3c9f28 upstream.

Commit 109bade9c6 ("scsi: sg: use standard lists for sg_requests")
introduced an off-by-one error in sg_ioctl(), which was fixed by commit
bd46fc406b ("scsi: sg: off by one in sg_ioctl()").

Unfortunately commit 4759df905a ("scsi: sg: factor out
sg_fill_request_table()") moved that code, and reintroduced the
bug (perhaps due to a botched rebase).  Fix it again.

Fixes: 4759df905a ("scsi: sg: factor out sg_fill_request_table()")
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-02 09:49:14 +01:00
..
2016-02-23 21:27:02 -05:00
…
2017-04-08 09:30:32 +02:00
2016-07-20 17:38:35 -06:00
2015-04-27 10:10:19 -07:00
2015-04-27 10:04:39 -07:00
2015-04-27 10:04:39 -07:00
2015-04-27 10:05:55 -07:00
…
…
…
…
…
…
2015-12-03 09:32:33 -08:00
…
…
2015-11-25 22:08:55 -05:00
…
…
…
2016-02-23 21:27:02 -05:00
…
2016-05-10 22:01:07 -04:00
…
2015-11-09 17:11:57 -08:00
…
2015-11-09 16:32:14 -08:00
…
…
…
2016-02-25 21:10:53 -05:00
…
…
2016-10-14 16:26:31 -04:00
2015-06-02 17:24:54 -07:00
…
2016-01-27 20:36:10 +08:00
…
2016-01-27 20:36:10 +08:00
…
2016-09-26 20:49:25 -04:00
…
…
…
…
…
…
…
…
2016-02-23 21:27:02 -05:00
…
…
2016-11-28 15:51:31 -05:00
…
…
…
2016-02-23 21:27:02 -05:00
2017-04-21 09:31:21 +02:00
…
2015-11-18 11:59:09 -05:00
2016-02-23 21:27:02 -05:00
…
…
…
…