Re: [PATCH] scsi: sg: Re-fix off by one in sg_fill_request_table()

2017-10-17 Thread Martin K. Petersen
Ben, > Commit 109bade9c625 ("scsi: sg: use standard lists for sg_requests") > introduced an off-by-one error in sg_ioctl(), which was fixed by > commit bd46fc406b30 ("scsi: sg: off by one in sg_ioctl()"). > > Unfortunately commit 4759df905a47 ("scsi: sg: factor out > sg_fill_request_table()") mov

Re: [PATCH] scsi: sg: Re-fix off by one in sg_fill_request_table()

2017-10-17 Thread Douglas Gilbert
On 2017-10-15 01:16 PM, Ben Hutchings wrote: Commit 109bade9c625 ("scsi: sg: use standard lists for sg_requests") introduced an off-by-one error in sg_ioctl(), which was fixed by commit bd46fc406b30 ("scsi: sg: off by one in sg_ioctl()"). Unfortunately commit 4759df905a47 ("scsi: sg: factor out

[PATCH] scsi: sg: Re-fix off by one in sg_fill_request_table()

2017-10-15 Thread Ben Hutchings
Commit 109bade9c625 ("scsi: sg: use standard lists for sg_requests") introduced an off-by-one error in sg_ioctl(), which was fixed by commit bd46fc406b30 ("scsi: sg: off by one in sg_ioctl()"). Unfortunately commit 4759df905a47 ("scsi: sg: factor out sg_fill_request_table()") moved that code, and