linux/drivers/net/ethernet/amd/pds_core
Shannon Nelson 8c817eb262 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: 45d76f4929 ("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>
2025-01-06 15:57:54 -08:00
..
Makefile pds_core: remove CONFIG_DEBUG_FS from makefile 2023-05-03 09:15:50 +01:00
adminq.c pds_core: Unmask adminq interrupt in work thread 2024-02-06 13:26:54 +01:00
auxbus.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-03-07 10:29:36 -08:00
core.c pds_core: Fix pdsc_check_pci_health function to use work thread 2024-04-10 08:30:10 +01:00
core.h devlink: extend devlink_param *set pointer 2024-04-22 13:05:19 -07:00
debugfs.c pds_core: Remove redundant null pointer checks 2024-09-04 16:59:01 -07:00
dev.c pds_core: Fix pdsc_check_pci_health function to use work thread 2024-04-10 08:30:10 +01:00
devlink.c pds_core: limit loop over fw name list 2025-01-06 15:57:54 -08:00
fw.c pds_core: Clear BARs on reset 2024-01-31 18:26:59 -08:00
main.c pds_core: Fix pdsc_check_pci_health function to use work thread 2024-04-10 08:30:10 +01:00