summaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-08-17 10:09:54 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-09-27 11:00:15 +0200
commitf0cd701d475038d3078867cad576f6530c065120 (patch)
tree960b910670f0ec328d072f80d1e70d7c1664820f /include/linux/fpga/fpga-mgr.h
parent3682e0c61ffb4fccd1a86bd2af3cbdd23723b9ed (diff)
scsi: sg: off by one in sg_ioctl()
commit bd46fc406b30d1db1aff8dabaff8d18bb423fdcf upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions