summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_error.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-11-09 14:52:19 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-11-18 22:00:18 -0500
commite11e285b9cd132db21568b5d29c291f590841944 (patch)
tree5257d84c9f7108ae60dd3f19a13ad0986c7f5346 /drivers/scsi/scsi_error.c
parent73185a13773af10264f9d8ee70386c01c849ff2c (diff)
downloadlinux-e11e285b9cd132db21568b5d29c291f590841944.tar.gz
linux-e11e285b9cd132db21568b5d29c291f590841944.tar.bz2
linux-e11e285b9cd132db21568b5d29c291f590841944.zip
scsi: qla2xxx: edif: Fix off by one bug in qla_edif_app_getfcinfo()
The > comparison needs to be >= to prevent accessing one element beyond the end of the app_reply->ports[] array. Link: https://lore.kernel.org/r/20211109115219.GE16587@kili Fixes: 7878f22a2e03 ("scsi: qla2xxx: edif: Add getfcinfo and statistic bsgs") Reviewed-by: Ewan D. Milne <emilne@redhat.com> Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_error.c')
0 files changed, 0 insertions, 0 deletions