diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-08-17 09:09:54 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-08-23 04:23:42 +0200 |
commit | bd46fc406b30d1db1aff8dabaff8d18bb423fdcf (patch) | |
tree | 7279fb6cd3b1b6641550ad20e7f24152b50a9a7e /drivers/misc/ics932s401.c | |
parent | scsi: ipr: Set no_report_opcodes for RAID arrays (diff) | |
download | linux-bd46fc406b30d1db1aff8dabaff8d18bb423fdcf.tar.xz linux-bd46fc406b30d1db1aff8dabaff8d18bb423fdcf.zip |
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>
Diffstat (limited to 'drivers/misc/ics932s401.c')
0 files changed, 0 insertions, 0 deletions