Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qla2x00t-32gbit: 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]> [ commit 4406e4176f47 upstream ]
- Loading branch information