summaryrefslogtreecommitdiffstats
path: root/lib/uuid.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2024-04-02 12:56:54 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2024-04-05 21:48:32 -0400
commit4406e4176f47177f5e51b4cc7e6a7a2ff3dbfbbd (patch)
treee009d1d1d84f186947e13662567cbecb1f18a2d6 /lib/uuid.c
parent0098c55e0881f0b32591f2110410d5c8b7f9bd5a (diff)
downloadlinux-stable-4406e4176f47177f5e51b4cc7e6a7a2ff3dbfbbd.tar.gz
linux-stable-4406e4176f47177f5e51b4cc7e6a7a2ff3dbfbbd.tar.bz2
linux-stable-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 <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>
Diffstat (limited to 'lib/uuid.c')
0 files changed, 0 insertions, 0 deletions