summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorCezary Rojewski <cezary.rojewski@intel.com>2026-09-02 10:18:13 +0200
committerMark Brown <broonie@kernel.org>2026-09-03 22:51:40 +0100
commit681e91035dc794896a904852040837190e5041f5 (patch)
tree33802011adff2919088513b5e266d2b02439c4a0 /scripts/Makefile.thinlto
parentd4fa6f94b91137e329ea3f5b360e140b227bb696 (diff)
downloadlinux-next-681e91035dc794896a904852040837190e5041f5.tar.gz
linux-next-681e91035dc794896a904852040837190e5041f5.zip
ASoC: Intel: avs: Refactor and fix init_config access
Existing code accesses enties found in ->init_configs array through indexes that are part of ->config_ids array. Those two are limited by: ->num_init_configs and ->num_config_ids respectively. Using ID larger or equal to ->num_init_configs leads to out-of-bounds access: avs_path_module_send_init_configs() loop: (...) &acomp->tplg->init_configs[ids[i]] ^ out-of-bounds candidate Rather than adding another if-statement, refactor the code. There is no need to store the IDs, have a list of pointers to actual config-entries instead. As the verification of ->init_config entries does not differ from verification of other types that are part of the topology.c file, simply reuse the code. Fixes: 8a49ef789b1b ("ASoC: Intel: avs: Send initial config to module if present") Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://patch.msgid.link/20260902081814.1590883-10-cezary.rojewski@intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions