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: 45d76f49 ("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>
Loading
Please sign in to comment