diff options
| author | Dan Carpenter <[email protected]> | 2024-04-02 09:56:54 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2024-04-06 01:48:32 +0000 |
| commit | 4406e4176f47177f5e51b4cc7e6a7a2ff3dbfbbd (patch) | |
| tree | e009d1d1d84f186947e13662567cbecb1f18a2d6 /net/unix/af_unix.c | |
| parent | scsi: hisi_sas: Modify the deadline for ata_wait_after_reset() (diff) | |
| download | kernel-4406e4176f47177f5e51b4cc7e6a7a2ff3dbfbbd.tar.gz kernel-4406e4176f47177f5e51b4cc7e6a7a2ff3dbfbbd.zip | |
scsi: qla2xxx: Fix off by one in qla_edif_app_getstats()
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: 7878f22a2e03 ("scsi: qla2xxx: edif: Add getfcinfo and statistic bsgs")
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Himanshu Madhani <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
