linux-stable/drivers/scsi/qla2xxx
Dan Carpenter 60b87b5ecb scsi: qla2xxx: Fix off by one in qla_edif_app_getstats()
[ Upstream commit 4406e4176f ]

The app_reply->elem[] array is allocated earlier in this function and it
has app_req.num_ports elements.  Thus this > comparison needs to be >= to
prevent memory corruption.

Fixes: 7878f22a2e ("scsi: qla2xxx: edif: Add getfcinfo and statistic bsgs")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/5c125b2f-92dd-412b-9b6f-fc3a3207bd60@moroto.mountain
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-17 11:19:28 +02:00
..
Kconfig
Makefile
qla_attr.c scsi: qla2xxx: Delay I/O Abort on PCI error 2024-04-03 15:29:02 +02:00
qla_bsg.c
qla_bsg.h
qla_dbg.c
qla_dbg.h
qla_def.h scsi: qla2xxx: Update manufacturer detail 2024-04-03 15:29:02 +02:00
qla_devtbl.h
qla_dfs.c scsi: qla2xxx: Fix NULL vs IS_ERR() bug for debugfs_create_dir() 2023-09-05 05:50:36 -04:00
qla_dsd.h
qla_edif.c scsi: qla2xxx: Fix off by one in qla_edif_app_getstats() 2024-04-17 11:19:28 +02:00
qla_edif.h
qla_edif_bsg.h
qla_fw.h
qla_gbl.h scsi: qla2xxx: Fix N2N stuck connection 2024-04-03 15:29:01 +02:00
qla_gs.c
qla_init.c scsi: qla2xxx: NVME|FCP prefer flag not being honored 2024-04-03 15:29:02 +02:00
qla_inline.h scsi: qla2xxx: Use raw_smp_processor_id() instead of smp_processor_id() 2023-09-05 05:36:08 -04:00
qla_iocb.c scsi: qla2xxx: Fix double free of fcport 2024-04-03 15:29:02 +02:00
qla_isr.c scsi: qla2xxx: Use raw_smp_processor_id() instead of smp_processor_id() 2023-09-05 05:36:08 -04:00
qla_mbx.c scsi: qla2xxx: Change debug message during driver unload 2024-04-03 15:29:02 +02:00
qla_mid.c
qla_mr.c
qla_mr.h
qla_nvme.c
qla_nvme.h
qla_nx.c
qla_nx.h
qla_nx2.c
qla_nx2.h
qla_os.c scsi: qla2xxx: Fix double free of the ha->vp_map pointer 2024-04-03 15:29:02 +02:00
qla_settings.h
qla_sup.c
qla_target.c scsi: qla2xxx: Fix command flush on cable pull 2024-04-03 15:29:02 +02:00
qla_target.h
qla_tmpl.c
qla_tmpl.h
qla_version.h
tcm_qla2xxx.c scsi: qla2xxx: Use raw_smp_processor_id() instead of smp_processor_id() 2023-09-05 05:36:08 -04:00
tcm_qla2xxx.h