]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: topology: Fix route memory corruption
authorMark Brown <broonie@kernel.org>
Tue, 11 Jun 2024 11:28:22 +0000 (12:28 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 11 Jun 2024 11:28:22 +0000 (12:28 +0100)
commitb9dd212b14d27a53b63fc6621c452c0b3a01f61d
tree8a301f8edb81d71442c74e34461d42220efcdd5b
parente3209a1827646daaab744aa6a5767b1f57fb5385
parente0e7bc2cbee93778c4ad7d9a792d425ffb5af6f7
ASoC: topology: Fix route memory corruption

Merge series from Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>:

Originally reported here:
https://github.com/thesofproject/avs-topology-xml/issues/22#issuecomment-2127892605
There is various level of failure there, first of all when topology
loads routes, it points directly into FW file, but it may be freed after
topology load. After fixing the above, when avs driver parses topology
it should allocate its own memory, as target strings can be shorter than
needed. Also clean up soc_tplg_dapm_graph_elems_load() a bit.