summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorShannon Nelson <shannon.nelson@amd.com>2025-01-03 11:51:47 -0800
committerJakub Kicinski <kuba@kernel.org>2025-01-06 15:57:54 -0800
commit8c817eb26230dc0ae553cee16ff43a4a895f6756 (patch)
tree4c0f866f64276f0f039e76c1bba9b13f343cb61c /tools/perf/scripts/python/export-to-postgresql.py
parent8ce4f287524c74a118b0af1eebd4b24a8efca57a (diff)
pds_core: limit loop over fw name list
Add an array size limit to the for-loop to be sure we don't try to reference a fw_version string off the end of the fw info names array. We know that our firmware only has a limited number of firmware slot names, but we shouldn't leave this unchecked. Fixes: 45d76f492938 ("pds_core: set up device and adminq") Signed-off-by: Shannon Nelson <shannon.nelson@amd.com> Reviewed-by: Simon Horman <horms@kernel.org> Reviewed-by: Brett Creeley <brett.creeley@amd.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Link: https://patch.msgid.link/20250103195147.7408-1-shannon.nelson@amd.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions